diff --git a/tests/native.test.ts b/tests/native.test.ts index d14ad5c..a4c980e 100644 --- a/tests/native.test.ts +++ b/tests/native.test.ts @@ -128,7 +128,7 @@ test("CALL_NATIVE - function not found", async () => { const vm = new VM(bytecode) - await expect(vm.run()).rejects.toThrow('CALL_NATIVE: function not found: nonexistent') + expect(vm.run()).rejects.toThrow('CALL_NATIVE: function not found: nonexistent') }) test("CALL_NATIVE - using result in subsequent operations", async () => {