LibJS: Uncomment passing tests

This commit is contained in:
Daniel Bertalan 2023-08-08 09:53:14 +02:00 committed by Jelle Raaijmakers
parent 5f0d3c083f
commit 7ac6af1998
2 changed files with 4 additions and 5 deletions

View file

@ -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", () => {

View file

@ -10,8 +10,7 @@ test("parse optional-chaining", () => {
expect("a?.b?.``").not.toEval();
expect("new Foo?.bar").not.toEval();
expect("new (Foo?.bar)").toEval();
// FIXME: This should pass.
// expect("(new Foo)?.bar").toEval();
expect("(new Foo)?.bar").toEval();
});
test("evaluate optional-chaining", () => {