Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent 4f7da1be9b
commit d29974ebc9
151 changed files with 753 additions and 373 deletions

View File

@ -8,12 +8,18 @@ const functionName = fn => (console.debug(fn.name), fn);
expect(functionName).toBeInstanceOf(Function);
});
functionName(Math.max);
t.equal(output, 'max', 'Works for native functions');
test('Works for native functions', () => {
expect(output, 'max').toBe()
});
function fun(x) {return x;}
functionName(fun);
t.equal(output, 'fun', 'Works for functions');
test('Works for functions', () => {
expect(output, 'fun').toBe()
});
const fn = x => x;
functionName(fn);
t.equal(output, 'fn', 'Works for arrow functions');
test('Works for arrow functions', () => {
expect(output, 'fn').toBe()
});