diff --git a/examples/napi-compat-mode/__test__/napi7/arraybuffer.spec.ts b/examples/napi-compat-mode/__test__/napi7/arraybuffer.spec.ts index 092a79a1..826f9f67 100644 --- a/examples/napi-compat-mode/__test__/napi7/arraybuffer.spec.ts +++ b/examples/napi-compat-mode/__test__/napi7/arraybuffer.spec.ts @@ -23,10 +23,8 @@ test('is detached arraybuffer should work fine', (t) => { try { bindings.testDetachArrayBuffer(ab) const nonDetachedArrayBuffer = new ArrayBuffer(10) - const detachedArrayBuffer = new ArrayBuffer(0) t.true(bindings.testIsDetachedArrayBuffer(ab)) t.false(bindings.testIsDetachedArrayBuffer(nonDetachedArrayBuffer)) - t.true(bindings.testIsDetachedArrayBuffer(detachedArrayBuffer)) } catch (e) { t.is((e as any).code, 'DetachableArraybufferExpected') }