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

@ -537,4 +537,4 @@ var PGP = {
var bytes = Array.prototype.slice.call(uint8bytes); var bytes = Array.prototype.slice.call(uint8bytes);
return bytes; return bytes;
}, },
}; };

View file

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

View file

@ -440,7 +440,7 @@ TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) {
args: ["Public key"], args: ["Public key"],
}, },
], ],
} };
})); }));
TestRegister.addTests(CYBERCHEF_GENERATED_KEY_PAIRS.map(function(keyPair) { 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"], args: ["Private key"],
}, },
], ],
} };
})); }));
CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) { CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {
@ -488,4 +488,4 @@ CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {
], ],
}; };
})); }));
}); });