Skip to content

Commit 0619cef

Browse files
authored
test: fix invocations
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 1c78af9 commit 0619cef

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib/wasm/module-wrapper/test

lib/node_modules/@stdlib/wasm/module-wrapper/test/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tape( 'the function is a constructor', opts, function test( t ) {
7171
var mod;
7272

7373
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
74-
mod = new Module( wasm, {} );
74+
mod = new Module( wasm, null );
7575

7676
t.strictEqual( mod instanceof Module, true, 'returns expected value' );
7777
t.end();
@@ -83,7 +83,7 @@ tape( 'the function returns an instance having an `initialize` method which retu
8383
var p;
8484

8585
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
86-
mod = new Module( wasm, {} );
86+
mod = new Module( wasm, null );
8787
p = mod.initialize();
8888

8989
t.strictEqual( typeof p.then, 'function', 'returns expected value' );
@@ -95,7 +95,7 @@ tape( 'the function returns an instance having an `initialize` method which retu
9595
var mod;
9696

9797
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
98-
mod = new Module( wasm, {} );
98+
mod = new Module( wasm, null );
9999

100100
mod.initialize().then( onResolve, onReject );
101101

@@ -116,7 +116,7 @@ tape( 'the function returns an instance having an `initializeAsync` method which
116116
var mod;
117117

118118
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
119-
mod = new Module( wasm, {} );
119+
mod = new Module( wasm, null );
120120

121121
mod.initializeAsync( clbk );
122122

@@ -135,7 +135,7 @@ tape( 'the function returns an instance having an `initializeAsync` method which
135135
var mod;
136136

137137
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
138-
mod = new Module( wasm, {} );
138+
mod = new Module( wasm, null );
139139

140140
mod.initializeAsync( clbk );
141141

@@ -156,7 +156,7 @@ tape( 'the function returns an instance having an `exports` property which is av
156156
var mod;
157157

158158
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
159-
mod = new Module( wasm, {} );
159+
mod = new Module( wasm, null );
160160

161161
mod.initialize().then( onResolve, onReject );
162162

0 commit comments

Comments
 (0)