LibJS: Fix byteOffset copy-paste error in TypedArray byteLength test

This commit is contained in:
Luke 2021-07-06 02:28:31 +01:00 committed by Linus Groh
parent 651becbfb1
commit c8db607c00
Notes: sideshowbarker 2024-07-18 10:19:23 +09:00

View file

@ -20,7 +20,7 @@ test("basic functionality", () => {
if (!isBigIntArray) typedArray = new T.array([1, 2, 3]);
else typedArray = new T.array([1n, 2n, 3n]);
expect(Object.hasOwn(typedArray, "byteOffset")).toBeFalse();
expect(Object.hasOwn(typedArray, "byteLength")).toBeFalse();
expect(typedArray.byteLength).toBe(T.expected);
});
});