diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-05 10:47:40 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-06 23:40:35 +0200 |
commit | 918f4affd51cdd285272770465d4d875f4ae5aa2 (patch) | |
tree | 5885d1c4161083454924db9abaaf127c76cf0c99 /Libraries/LibJS/Tests/var-multiple-declarator.js | |
parent | 6d58c48c2fbe2e3ce9b9cfe1dd75a5ccc594f961 (diff) | |
download | serenity-918f4affd51cdd285272770465d4d875f4ae5aa2.zip |
LibJS: Convert remaining top-level tests to new system
Diffstat (limited to 'Libraries/LibJS/Tests/var-multiple-declarator.js')
-rw-r--r-- | Libraries/LibJS/Tests/var-multiple-declarator.js | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Libraries/LibJS/Tests/var-multiple-declarator.js b/Libraries/LibJS/Tests/var-multiple-declarator.js index 0596f4057c..089e67313c 100644 --- a/Libraries/LibJS/Tests/var-multiple-declarator.js +++ b/Libraries/LibJS/Tests/var-multiple-declarator.js @@ -1,13 +1,8 @@ -load("test-common.js"); - -try { +test("basic functionality", () => { var a = 1, b = 2, c = a + b; - assert(a === 1); - assert(b === 2); - assert(c === 3); - console.log("PASS"); -} catch (e) { - console.log("FAIL: " + e); -} + expect(a).toBe(1); + expect(b).toBe(2); + expect(c).toBe(3); +}); |