mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 15:07: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);
|
var bytes = Array.prototype.slice.call(uint8bytes);
|
||||||
return bytes;
|
return bytes;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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) {
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue