mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-25 18:52:22 -05:00
14 lines
418 B
JavaScript
14 lines
418 B
JavaScript
test("basic functionality", () => {
|
|
const o = {};
|
|
o.a = 1;
|
|
|
|
expect(o.a === 1).toBeTrue();
|
|
expect(!o.a === false).toBeTrue();
|
|
expect(!o.a === !o.a).toBeTrue();
|
|
expect(~o.a === ~o.a).toBeTrue();
|
|
expect(+o.a === +o.a).toBeTrue();
|
|
expect(-o.a === -o.a).toBeTrue();
|
|
|
|
expect((typeof "x" === "string") === true).toBeTrue();
|
|
expect(!(typeof "x" === "string") === false).toBeTrue();
|
|
});
|