mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-06 22:47:11 -04:00
Fix eslint formatting warnings
This commit is contained in:
parent
d279d16ce0
commit
7188f9397f
3 changed files with 7 additions and 7 deletions
|
@ -537,4 +537,4 @@ var PGP = {
|
|||
var bytes = Array.prototype.slice.call(uint8bytes);
|
||||
return bytes;
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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) {
|
||||
|
@ -488,4 +488,4 @@ CYBERCHEF_GENERATED_KEY_PAIRS.forEach(function(keyPair) {
|
|||
],
|
||||
};
|
||||
}));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue