Fix eslint formatting warnings

This commit is contained in:
toby 2017-03-13 17:31:00 -04:00
parent d279d16ce0
commit 7188f9397f
3 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@
// Remove whitespace helper
var noWS = function(string) {
return string.replace(/\s/g, "");
}
};
if (result.error) {
if (test.expectedError) {
@ -71,8 +71,8 @@
ret.output = "Expected an error but did not receive one.";
} else if (result.result === test.expectedOutput) {
ret.status = "passing";
} else if (test.ignoreWhitespace
&& noWS(result.result) === noWS(test.expectedOutput)) {
} else if (test.ignoreWhitespace &&
noWS(result.result) === noWS(test.expectedOutput)) {
ret.status = "passing";
} else {
ret.status = "failing";

View file

@ -440,7 +440,7 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
args: ["Public key"],
},
],
}
};
}));
TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
@ -462,7 +462,7 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
args: ["Private key"],
},
],
}
};
}));
CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {