1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

LibJS: Fix check for byteOffset instead of byteLength in byteLength test

This commit is contained in:
Luke 2021-06-14 14:06:45 +01:00 committed by Linus Groh
parent 9c2eff8859
commit 8d90e137a5

View file

@ -13,7 +13,7 @@ const TYPED_ARRAYS = [
test("basic functionality", () => {
TYPED_ARRAYS.forEach(T => {
const typedArray = new T.array([1, 2, 3]);
expect(Object.hasOwn(typedArray, "byteOffset")).toBeFalse();
expect(Object.hasOwn(typedArray, "byteLength")).toBeFalse();
expect(typedArray.byteLength).toBe(T.expected);
});
});