mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibJS: Add tests for symbol object integration
This commit is contained in:
parent
7a1d485b19
commit
119386ffb0
Notes:
sideshowbarker
2024-07-19 04:59:35 +09:00
Author: https://github.com/mattco98
Commit: 119386ffb0
Pull-request: https://github.com/SerenityOS/serenity/pull/2744
13 changed files with 198 additions and 13 deletions
|
@ -7,3 +7,8 @@ test("use with object", () => {
|
|||
let names = Object.getOwnPropertyNames({ foo: 1, bar: 2, baz: 3 });
|
||||
expect(names).toEqual(["foo", "bar", "baz"]);
|
||||
});
|
||||
|
||||
test("use with object with symbol keys", () => {
|
||||
let names = Object.getOwnPropertyNames({ foo: 1, [Symbol("bar")]: 2, baz: 3 });
|
||||
expect(names).toEqual(["foo", "baz"]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue