mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
LibJS: Fix check for byteOffset instead of byteLength in byteLength test
This commit is contained in:
parent
9c2eff8859
commit
8d90e137a5
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ const TYPED_ARRAYS = [
|
||||||
test("basic functionality", () => {
|
test("basic functionality", () => {
|
||||||
TYPED_ARRAYS.forEach(T => {
|
TYPED_ARRAYS.forEach(T => {
|
||||||
const typedArray = new T.array([1, 2, 3]);
|
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);
|
expect(typedArray.byteLength).toBe(T.expected);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue