
The addition of assert functions to Userland/js was done before we had load(..) implemented. Now that it exists, it seems like the right move the test helper functions to pure javascript instead of poluting js with random global functions.
9 lines
121 B
JavaScript
9 lines
121 B
JavaScript
load("test-common.js");
|
|
|
|
try {
|
|
i < 3;
|
|
} catch (e) {
|
|
assert(e.name === "ReferenceError");
|
|
}
|
|
|
|
console.log("PASS");
|