UNPKG

in-words

Version:
10 lines (7 loc) 220 B
'use strict'; var assert = require('assert'); exports.inWordsTest = function (inWords, number, string) { it('gives the correct result for ' + number, function () { assert.equal(inWords(number), string); }); };