From 7188f9397f8f49d745f3d1bd22eab985e73b72c3 Mon Sep 17 00:00:00 2001 From: toby Date: Mon, 13 Mar 2017 17:31:00 -0400 Subject: [PATCH] Fix eslint formatting warnings --- src/js/operations/PGP.js | 2 +- test/TestRegister.js | 6 +++--- test/tests/operations/PGP.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/js/operations/PGP.js b/src/js/operations/PGP.js index 4515c86e..624ecd02 100755 --- a/src/js/operations/PGP.js +++ b/src/js/operations/PGP.js @@ -537,4 +537,4 @@ var PGP = { var bytes = Array.prototype.slice.call(uint8bytes); return bytes; }, -}; \ No newline at end of file +}; diff --git a/test/TestRegister.js b/test/TestRegister.js index b9059cbd..e48b73a4 100644 --- a/test/TestRegister.js +++ b/test/TestRegister.js @@ -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"; diff --git a/test/tests/operations/PGP.js b/test/tests/operations/PGP.js index d11b8595..234b22b9 100644 --- a/test/tests/operations/PGP.js +++ b/test/tests/operations/PGP.js @@ -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) { @@ -488,4 +488,4 @@ CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) { ], }; })); -}); \ No newline at end of file +});