UNPKG

written-number-klis87

Version:

Convert numbers to words - their written form.

27 lines (23 loc) 703 B
"use strict" /* 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" }); }); }); });