mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
test: remove third argument from assert.strictEqual() PR-URL: https://github.com/nodejs/node/pull/22451 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
18 lines
434 B
JavaScript
18 lines
434 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const fixtures = require('../common/fixtures');
|
|
|
|
const buffer = fixtures.readSync('test.wasm');
|
|
|
|
assert.ok(WebAssembly.validate(buffer), 'Buffer should be valid WebAssembly');
|
|
|
|
WebAssembly.instantiate(buffer, {}).then((results) => {
|
|
// Exported function should add two numbers.
|
|
assert.strictEqual(
|
|
results.instance.exports.addTwo(10, 20),
|
|
30
|
|
);
|
|
});
|