mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Add tests for symbol object integration
This commit is contained in:
committed by
Andreas Kling
parent
7a1d485b19
commit
119386ffb0
@@ -19,6 +19,15 @@ describe("basic functionality", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
test("entries with objects with symbol keys", () => {
|
||||
let entries = Object.entries({ foo: 1, [Symbol("bar")]: 2, baz: 3 });
|
||||
|
||||
expect(entries).toEqual([
|
||||
["foo", 1],
|
||||
["baz", 3],
|
||||
]);
|
||||
});
|
||||
|
||||
test("entries with array", () => {
|
||||
entries = Object.entries(["a", "b", "c"]);
|
||||
expect(entries).toEqual([
|
||||
|
||||
Reference in New Issue
Block a user