mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 09:44:58 +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,9 +1,3 @@
|
|||
load("test-common.js");
|
||||
|
||||
try {
|
||||
i < 3;
|
||||
} catch (e) {
|
||||
assert(e.name === "ReferenceError");
|
||||
}
|
||||
|
||||
console.log("PASS");
|
||||
test("unknown variable produces ReferenceError", () => {
|
||||
expect(new Function("i < 3")).toThrow(ReferenceError);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue