Skip to content

Commit ef5a291

Browse files
committed
fix: correct some test assertions
1 parent 9cc4ebb commit ef5a291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/cases/wasm/decoding/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ it("should raw memory export without data", function() {
1010
return import("./memory2.wasm").then(function(wasm) {
1111
expect(wasm.memory).toBeInstanceOf(WebAssembly.Memory);
1212
expect(wasm.memory.buffer).toBeInstanceOf(ArrayBuffer);
13-
expect(wasm.memory.buffer.byLength).toBe(1 << 16);
13+
expect(wasm.memory.buffer.byteLength).toBe(1 << 16);
1414
});
1515
});

test/cases/wasm/table/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ it("should support tables", function() {
22
return import("./wasm-table.wasm").then(function(wasm) {
33
expect(wasm.callByIndex(0)).toEqual(42);
44
expect(wasm.callByIndex(1)).toEqual(13);
5-
expect(() => wasm.callByIndex(2)).toThrow("fefef");
5+
expect(() => wasm.callByIndex(2)).toThrow("invalid function");
66
});
77
});
88

0 commit comments

Comments
 (0)