mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibJS: Add tests for symbol object integration
This commit is contained in:
parent
7a1d485b19
commit
119386ffb0
13 changed files with 198 additions and 13 deletions
|
@ -14,6 +14,11 @@ describe("correct behavior", () => {
|
|||
expect(values).toEqual([1, 2, 3]);
|
||||
});
|
||||
|
||||
test("object argument with symbol keys", () => {
|
||||
let values = Object.values({ foo: 1, [Symbol("bar")]: 2, baz: 3 });
|
||||
expect(values).toEqual([1, 3]);
|
||||
});
|
||||
|
||||
test("array argument", () => {
|
||||
let values = Object.values(["a", "b", "c"]);
|
||||
expect(values).toEqual(["a", "b", "c"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue