Clean up unit test breakage

In 992b6b9fcc unit test broke (which I missed). This was due to undeclared variables not being side-effects free.

However, since they're really not side-effect free, just declare them in the test cases.
This commit is contained in:
Richard van Velzen
2015-02-11 21:27:21 +01:00
parent 992b6b9fcc
commit 61e850ceb5
2 changed files with 91 additions and 89 deletions

View File

@@ -53,6 +53,7 @@ ifs_3_should_warn: {
booleans : true
};
input: {
var x, y;
if (x && !(x + "1") && y) { // 1
var qq;
foo();
@@ -68,6 +69,7 @@ ifs_3_should_warn: {
}
}
expect: {
var x, y;
var qq; bar(); // 1
var jj; foo(); // 2
}