mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibJS: Add tests for symbol object integration
This commit is contained in:
committed by
Andreas Kling
parent
7a1d485b19
commit
119386ffb0
@@ -9,6 +9,18 @@ test("plain property", () => {
|
||||
expect(o).not.toHaveSetterProperty("foo");
|
||||
});
|
||||
|
||||
test("symbol property", () => {
|
||||
let s = Symbol("foo");
|
||||
let o = { [s]: "bar" };
|
||||
|
||||
expect(o).toHaveConfigurableProperty(s);
|
||||
expect(o).toHaveEnumerableProperty(s);
|
||||
expect(o).toHaveWritableProperty(s);
|
||||
expect(o).toHaveValueProperty(s, "bar");
|
||||
expect(o).not.toHaveGetterProperty(s);
|
||||
expect(o).not.toHaveSetterProperty(s);
|
||||
});
|
||||
|
||||
test("getter property", () => {
|
||||
let o = { get foo() {} };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user