Add tests for toCurrency

This commit is contained in:
Angelos Chalaris
2018-02-08 16:09:39 +02:00
parent bd0f6c1625
commit 1b2ab92afb
8 changed files with 28 additions and 14 deletions

View File

@ -12,7 +12,7 @@ test('Testing functionName', (t) => {
t.true(typeof functionName === 'function', 'functionName is a Function');
functionName(Math.max);
t.equal(output, 'max', 'Works for native functions');
function fun(x) {return x};
function fun(x) {return x;}
functionName(fun);
t.equal(output, 'fun', 'Works for functions');
const fn = x => x;