mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 08:46:19 -04:00
WIP: start testing ops with various arg types. AESENCRYPT result encoding error
This commit is contained in:
parent
fc1b8917a8
commit
a5d58071cd
4 changed files with 120 additions and 5 deletions
|
@ -9,6 +9,22 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
/* eslint no-console: 0 */
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
const wrapRun = (run) => () => {
|
||||
try {
|
||||
run();
|
||||
} catch (e) {
|
||||
console.dir(e);
|
||||
throw e;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* it - wrapper for assertions to provide a helpful description
|
||||
* to the TestRegister
|
||||
|
@ -37,7 +53,7 @@
|
|||
export function it(name, run) {
|
||||
return {
|
||||
name,
|
||||
run
|
||||
run: wrapRun(run),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue