Skip to content

Commit 7c527e2

Browse files
committed
Fix switch statement wrongly assuming WATCH_STEP is an integer number
1 parent ce4ce3e commit 7c527e2

File tree

1 file changed

+2
-2
lines changed
  • test/watchCases/parsing/caching-harmony/0

1 file changed

+2
-2
lines changed

test/watchCases/parsing/caching-harmony/0/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import cm from "./changing-module";
44
it("should flag harmony modules correctly", function() {
55
m.should.be.eql("module" + WATCH_STEP);
66
switch(WATCH_STEP) {
7-
case 0:
7+
case "0":
88
cm.should.be.eql("original");
99
break;
10-
case 1:
10+
case "1":
1111
cm.should.be.eql("change");
1212
break;
1313
}

0 commit comments

Comments
 (0)