Fix eslint formatting warnings
This commit is contained in:
parent
d279d16ce0
commit
7188f9397f
@ -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";
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user