WIP: start testing ops with various arg types. AESENCRYPT result encoding error

This commit is contained in:
d98762625 2018-06-15 11:33:13 +01:00
parent fc1b8917a8
commit a5d58071cd
4 changed files with 120 additions and 5 deletions

View file

@ -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),
};
}