mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibJS: Uncomment passing tests
This commit is contained in:
parent
5f0d3c083f
commit
7ac6af1998
2 changed files with 4 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
|||
test("basic functionality", () => {
|
||||
const local = Symbol("foo");
|
||||
// const global = Symbol.for("foo");
|
||||
const global = Symbol.for("foo");
|
||||
expect(local.valueOf()).toBe(local);
|
||||
// expect(global.valueOf()).toBe(global);
|
||||
expect(global.valueOf()).toBe(global);
|
||||
|
||||
expect(Symbol.prototype.valueOf.call(local)).toBe(local);
|
||||
// expect(Symbol.prototype.valueOf.call(global)).toBe(global);
|
||||
expect(Symbol.prototype.valueOf.call(global)).toBe(global);
|
||||
});
|
||||
|
||||
test("|this| must be a symbol", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue