mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibJS: Convert some top-level tests to the new system
First test conversions! These look really good :)
This commit is contained in:
parent
4b8a3e6d78
commit
eea6041302
22 changed files with 464 additions and 451 deletions
|
@ -1,14 +1,8 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
test("basic update expression", () => {
|
||||
var o = {};
|
||||
o.f = 1;
|
||||
|
||||
assert(o.f++ === 1);
|
||||
assert(++o.f === 3);
|
||||
assert(isNaN(++o.missing));
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
||||
expect(o.f++).toBe(1);
|
||||
expect(++o.f).toBe(3);
|
||||
expect(++o.missing).toBeNaN();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue