mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +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 {
|
||||
test("basic functionality", () => {
|
||||
function foo() {
|
||||
i = 3;
|
||||
assert(i === 3);
|
||||
expect(i).toBe(3);
|
||||
var i;
|
||||
}
|
||||
|
||||
|
@ -15,9 +13,5 @@ try {
|
|||
} catch (e) {
|
||||
caught_exception = e;
|
||||
}
|
||||
assert(caught_exception !== undefined);
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
||||
expect(caught_exception).not.toBeUndefined();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue