Skip to content

Commit ae8554c

Browse files
committed
fix: resolve linting errors in test file
1 parent 25301a3 commit ae8554c

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

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

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable no-underscore-dangle */
20+
1921
'use strict';
2022

2123
// MODULES //
@@ -67,8 +69,8 @@ tape( 'if an environment does not support `WebAssembly`, the function throws an
6769
});
6870

6971
tape( 'the function is a constructor', opts, function test( t ) {
70-
var mod;
7172
var wasm;
73+
var mod;
7274

7375
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
7476
mod = new Module( wasm, null );
@@ -78,8 +80,8 @@ tape( 'the function is a constructor', opts, function test( t ) {
7880
});
7981

8082
tape( 'the `initialize` method returns a promise', opts, function test( t ) {
81-
var mod;
8283
var wasm;
84+
var mod;
8385
var p;
8486

8587
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
@@ -91,8 +93,8 @@ tape( 'the `initialize` method returns a promise', opts, function test( t ) {
9193
});
9294

9395
tape( 'the `initialize` method properly sets `_module` and `_instance` properties', opts, function test( t ) {
94-
var mod;
9596
var wasm;
97+
var mod;
9698

9799
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
98100
mod = new Module( wasm, null );
@@ -115,15 +117,15 @@ tape( 'the `initialize` method properly sets `_module` and `_instance` propertie
115117
});
116118

117119
tape( 'the `initializeAsync` method invokes a callback', opts, function test( t ) {
118-
var mod;
119120
var wasm;
121+
var mod;
120122

121123
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
122124
mod = new Module( wasm, null );
123125

124126
mod.initializeAsync( clbk );
125127

126-
function clbk( error, result ) {
128+
function clbk( error ) {
127129
if ( error ) {
128130
t.fail( 'callback received an error: ' + error.message );
129131
} else {
@@ -134,8 +136,8 @@ tape( 'the `initializeAsync` method invokes a callback', opts, function test( t
134136
});
135137

136138
tape( 'the `initializeAsync` method properly sets `_module` and `_instance` properties', opts, function test( t ) {
137-
var mod;
138139
var wasm;
140+
var mod;
139141

140142
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
141143
mod = new Module( wasm, null );
@@ -158,8 +160,8 @@ tape( 'the `initializeAsync` method properly sets `_module` and `_instance` prop
158160
});
159161

160162
tape( 'the `exports` property returns instance exports after initialization', opts, function test( t ) {
161-
var mod;
162163
var wasm;
164+
var mod;
163165

164166
wasm = new Uint8Array( [ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00 ] );
165167
mod = new Module( wasm, null );

0 commit comments

Comments
 (0)