Skip to content

Commit 0edeac6

Browse files
committed
version=0.0.4
1 parent 4fc68b9 commit 0edeac6

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arcticnotes/node-wsh",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "A Node.js package that runs Windows Scripting Host (WSH) as a child process and exposes the resources from the WSH world to the Node.js world",
55
"author": "Paul <paul@arcticnotes.com>",
66
"license": "MIT",

test/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import { WindowsScriptingHost} from '@arcticnotes/node-wsh';
55
TEST( 'smoke-test', async() => {
66
const wsh = await WindowsScriptingHost.connect();
77
try {
8-
const WScript = wsh.WScript;
9-
const GetObject = wsh.GetObject;
10-
const Enumerator = wsh.Enumerator;
11-
8+
const { WScript, GetObject, Enumerator} = wsh;
129
console.log( WScript.Version);
1310
ASSERT.equal( typeof WScript.Version, 'string');
1411
const procs = GetObject( "winmgmts:\\\\.\\root\\cimv2").ExecQuery( 'SELECT ProcessId, Name FROM Win32_Process');
15-
for( const enumerator = new Enumerator( procs); !enumerator.atEnd(); enumerator.moveNext())
12+
for( const enumerator = new Enumerator( procs); !enumerator.atEnd(); enumerator.moveNext()) {
1613
console.log( `${ enumerator.item().ProcessId}: ${ enumerator.item().Name}`);
14+
ASSERT.equal( typeof enumerator.item().ProcessId, 'number');
15+
ASSERT.equal( typeof enumerator.item().Name, 'string');
16+
}
1717
} finally {
1818
await wsh.disconnect();
1919
}

0 commit comments

Comments
 (0)