@@ -28,6 +28,8 @@ describe('core', () => {
28
28
assert . equal ( typeof core . ProcessOutput . getExitMessage , 'function' , 'core.ProcessOutput.getExitMessage' )
29
29
assert . equal ( typeof core . ProcessPromise , 'function' , 'core.ProcessPromise' )
30
30
assert . equal ( typeof core . cd , 'function' , 'core.cd' )
31
+ assert . equal ( typeof core . chalk , 'function' , 'core.chalk' )
32
+ assert . equal ( typeof core . chalk . level , 'number' , 'core.chalk.level' )
31
33
assert . equal ( typeof core . defaults , 'object' , 'core.defaults' )
32
34
assert . equal ( typeof core . defaults . detached , 'boolean' , 'core.defaults.detached' )
33
35
assert . equal ( typeof core . defaults . env , 'object' , 'core.defaults.env' )
@@ -49,11 +51,64 @@ describe('core', () => {
49
51
assert . equal ( typeof core . defaults . verbose , 'boolean' , 'core.defaults.verbose' )
50
52
assert . equal ( typeof core . kill , 'function' , 'core.kill' )
51
53
assert . equal ( typeof core . log , 'function' , 'core.log' )
54
+ assert . equal ( typeof core . os , 'object' , 'core.os' )
55
+ assert . equal ( typeof core . os . EOL , 'string' , 'core.os.EOL' )
56
+ assert . equal ( typeof core . os . arch , 'function' , 'core.os.arch' )
57
+ assert . equal ( typeof core . os . availableParallelism , 'function' , 'core.os.availableParallelism' )
58
+ assert . equal ( typeof core . os . constants , 'object' , 'core.os.constants' )
59
+ assert . equal ( typeof core . os . cpus , 'function' , 'core.os.cpus' )
60
+ assert . equal ( typeof core . os . default , 'object' , 'core.os.default' )
61
+ assert . equal ( typeof core . os . devNull , 'string' , 'core.os.devNull' )
62
+ assert . equal ( typeof core . os . endianness , 'function' , 'core.os.endianness' )
63
+ assert . equal ( typeof core . os . freemem , 'function' , 'core.os.freemem' )
64
+ assert . equal ( typeof core . os . getPriority , 'function' , 'core.os.getPriority' )
65
+ assert . equal ( typeof core . os . homedir , 'function' , 'core.os.homedir' )
66
+ assert . equal ( typeof core . os . hostname , 'function' , 'core.os.hostname' )
67
+ assert . equal ( typeof core . os . loadavg , 'function' , 'core.os.loadavg' )
68
+ assert . equal ( typeof core . os . machine , 'function' , 'core.os.machine' )
69
+ assert . equal ( typeof core . os . networkInterfaces , 'function' , 'core.os.networkInterfaces' )
70
+ assert . equal ( typeof core . os . platform , 'function' , 'core.os.platform' )
71
+ assert . equal ( typeof core . os . release , 'function' , 'core.os.release' )
72
+ assert . equal ( typeof core . os . setPriority , 'function' , 'core.os.setPriority' )
73
+ assert . equal ( typeof core . os . tmpdir , 'function' , 'core.os.tmpdir' )
74
+ assert . equal ( typeof core . os . totalmem , 'function' , 'core.os.totalmem' )
75
+ assert . equal ( typeof core . os . type , 'function' , 'core.os.type' )
76
+ assert . equal ( typeof core . os . uptime , 'function' , 'core.os.uptime' )
77
+ assert . equal ( typeof core . os . userInfo , 'function' , 'core.os.userInfo' )
78
+ assert . equal ( typeof core . os . version , 'function' , 'core.os.version' )
79
+ assert . equal ( typeof core . path , 'object' , 'core.path' )
80
+ assert . equal ( typeof core . path . _makeLong , 'function' , 'core.path._makeLong' )
81
+ assert . equal ( typeof core . path . basename , 'function' , 'core.path.basename' )
82
+ assert . equal ( typeof core . path . delimiter , 'string' , 'core.path.delimiter' )
83
+ assert . equal ( typeof core . path . dirname , 'function' , 'core.path.dirname' )
84
+ assert . equal ( typeof core . path . extname , 'function' , 'core.path.extname' )
85
+ assert . equal ( typeof core . path . format , 'function' , 'core.path.format' )
86
+ assert . equal ( typeof core . path . isAbsolute , 'function' , 'core.path.isAbsolute' )
87
+ assert . equal ( typeof core . path . join , 'function' , 'core.path.join' )
88
+ assert . equal ( typeof core . path . matchesGlob , 'function' , 'core.path.matchesGlob' )
89
+ assert . equal ( typeof core . path . normalize , 'function' , 'core.path.normalize' )
90
+ assert . equal ( typeof core . path . parse , 'function' , 'core.path.parse' )
91
+ assert . equal ( typeof core . path . posix , 'object' , 'core.path.posix' )
92
+ assert . equal ( typeof core . path . relative , 'function' , 'core.path.relative' )
93
+ assert . equal ( typeof core . path . resolve , 'function' , 'core.path.resolve' )
94
+ assert . equal ( typeof core . path . sep , 'string' , 'core.path.sep' )
95
+ assert . equal ( typeof core . path . toNamespacedPath , 'function' , 'core.path.toNamespacedPath' )
96
+ assert . equal ( typeof core . path . win32 , 'object' , 'core.path.win32' )
97
+ assert . equal ( typeof core . ps , 'object' , 'core.ps' )
98
+ assert . equal ( typeof core . ps . kill , 'function' , 'core.ps.kill' )
99
+ assert . equal ( typeof core . ps . lookup , 'function' , 'core.ps.lookup' )
100
+ assert . equal ( typeof core . ps . lookupSync , 'function' , 'core.ps.lookupSync' )
101
+ assert . equal ( typeof core . ps . tree , 'function' , 'core.ps.tree' )
102
+ assert . equal ( typeof core . ps . treeSync , 'function' , 'core.ps.treeSync' )
103
+ assert . equal ( typeof core . quote , 'function' , 'core.quote' )
104
+ assert . equal ( typeof core . quotePowerShell , 'function' , 'core.quotePowerShell' )
52
105
assert . equal ( typeof core . resolveDefaults , 'function' , 'core.resolveDefaults' )
53
106
assert . equal ( typeof core . syncProcessCwd , 'function' , 'core.syncProcessCwd' )
54
107
assert . equal ( typeof core . useBash , 'function' , 'core.useBash' )
55
108
assert . equal ( typeof core . usePowerShell , 'function' , 'core.usePowerShell' )
56
109
assert . equal ( typeof core . usePwsh , 'function' , 'core.usePwsh' )
110
+ assert . equal ( typeof core . which , 'function' , 'core.which' )
111
+ assert . equal ( typeof core . which . sync , 'function' , 'core.which.sync' )
57
112
assert . equal ( typeof core . within , 'function' , 'core.within' )
58
113
} )
59
114
} )
0 commit comments