Skip to content

Commit 48affb8

Browse files
committed
test: expose detail on test
1 parent 4b8b063 commit 48affb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/loop-protect.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ describe('loop', function() {
148148
var c = code.irl2;
149149
var compiled = loopProtect(c);
150150
var r = run(compiled);
151-
assert(compiled !== c);
152-
assert(r === 120000, r);
151+
expect(compiled).not.toBe(c);
152+
expect(r).toBe(120000);
153153
});
154154

155155
it('should rewrite loops when curlies are on the next line', function() {

0 commit comments

Comments
 (0)