Skip to content

Commit 333b4d6

Browse files
committed
Fix expectError helper in tests
1 parent 305e7f1 commit 333b4d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/compiler.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ function runTests (solc, versionText) {
5555
error = output.errors[error];
5656
if (error.type === errorType) {
5757
if (message) {
58-
return error.message.match(message) !== null;
58+
if (error.message.match(message) !== null) {
59+
return true;
60+
}
61+
} else {
62+
return true;
5963
}
60-
return true;
6164
}
6265
}
6366
}

0 commit comments

Comments
 (0)