number-2-letters
Version:
Convert numbers to words - their written form.
24 lines (20 loc) • 664 B
JavaScript
; /* global describe, it */
var util = require('../lib/util');
var should = require('should');
describe('util', function() {
describe('.defaults(target, defaults)', function() {
it('gets exposed', function() {
should.exist(util.defaults);
});
it('extends into the empty object', function() {
util.defaults({}, {something: 'here'})
.should.eql({something: 'here'});
});
it('extends into null', function() {
util.defaults(null, {something: 'here'})
.should.eql({something: 'here'});
util.defaults(undefined, {something: 'here'})
.should.eql({something: 'here'});
});
});
});