ran npm run tester

This commit is contained in:
King
2018-01-27 10:17:50 -05:00
parent 227770c46f
commit 6bfe8652b1
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,2 @@
const toCurrency = (n, curr, LanguageFormat = undefined) => new Intl.NumberFormat(LanguageFormat, { style: 'currency', currency: curr }).format(n);
module.exports = toCurrency

View File

@ -0,0 +1,13 @@
const test = require('tape');
const toCurrency = require('./toCurrency.js');
test('Testing toCurrency', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof toCurrency === 'function', 'toCurrency is a Function');
//t.deepEqual(toCurrency(args..), 'Expected');
//t.equal(toCurrency(args..), 'Expected');
//t.false(toCurrency(args..), 'Expected');
//t.throws(toCurrency(args..), 'Expected');
t.end();
});