test(napi): remove outdated assersion (#1423)
This commit is contained in:
parent
ce2a29fca7
commit
5ab4b818f5
1 changed files with 0 additions and 2 deletions
|
@ -23,10 +23,8 @@ test('is detached arraybuffer should work fine', (t) => {
|
||||||
try {
|
try {
|
||||||
bindings.testDetachArrayBuffer(ab)
|
bindings.testDetachArrayBuffer(ab)
|
||||||
const nonDetachedArrayBuffer = new ArrayBuffer(10)
|
const nonDetachedArrayBuffer = new ArrayBuffer(10)
|
||||||
const detachedArrayBuffer = new ArrayBuffer(0)
|
|
||||||
t.true(bindings.testIsDetachedArrayBuffer(ab))
|
t.true(bindings.testIsDetachedArrayBuffer(ab))
|
||||||
t.false(bindings.testIsDetachedArrayBuffer(nonDetachedArrayBuffer))
|
t.false(bindings.testIsDetachedArrayBuffer(nonDetachedArrayBuffer))
|
||||||
t.true(bindings.testIsDetachedArrayBuffer(detachedArrayBuffer))
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
t.is((e as any).code, 'DetachableArraybufferExpected')
|
t.is((e as any).code, 'DetachableArraybufferExpected')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue