mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibJS: Convert remaining top-level tests to new system
This commit is contained in:
parent
6d58c48c2f
commit
918f4affd5
19 changed files with 518 additions and 497 deletions
|
@ -1,9 +1,7 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
var i = 0;
|
||||
var three;
|
||||
var five;
|
||||
test("basic functionality", () => {
|
||||
let i = 0;
|
||||
let three;
|
||||
let five;
|
||||
|
||||
for (; i < 9; ) {
|
||||
switch (i) {
|
||||
|
@ -16,8 +14,7 @@ try {
|
|||
}
|
||||
++i;
|
||||
}
|
||||
assert(three === 3);
|
||||
assert(five === 5);
|
||||
|
||||
console.log("PASS");
|
||||
} catch {}
|
||||
expect(three).toBe(3);
|
||||
expect(five).toBe(5);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue