LibJS: Convert remaining top-level tests to new system

This commit is contained in:
Matthew Olsson 2020-07-05 10:47:40 -07:00 committed by Andreas Kling
commit 918f4affd5
Notes: sideshowbarker 2024-07-19 05:03:58 +09:00
19 changed files with 518 additions and 497 deletions

View file

@ -1,29 +1,18 @@
"use strict";
load("test-common.js");
try {
assert(isStrictMode());
test("basic functionality", () => {
expect(isStrictMode()).toBeTrue();
(function () {
assert(isStrictMode());
})();
(function () {
"use strict";
assert(isStrictMode());
expect(isStrictMode()).toBeTrue();
})();
(() => {
assert(isStrictMode());
expect(isStrictMode()).toBeTrue();
})();
(() => {
"use strict";
assert(isStrictMode());
expect(isStrictMode()).toBeTrue();
})();
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
});