From bc6e9ac4ee638fdc11019c979e3f03b9d7098e3f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 7 Jan 2014 22:18:23 +0000 Subject: Add some very basic tests for options-reader --- tests/options-reader.tests.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/options-reader.tests.js (limited to 'tests/options-reader.tests.js') diff --git a/tests/options-reader.tests.js b/tests/options-reader.tests.js new file mode 100644 index 0000000..d493ae6 --- /dev/null +++ b/tests/options-reader.tests.js @@ -0,0 +1,16 @@ +var assert = require("assert"); + +var optionsReader = require("../lib/options-reader"); +var standardOptions = optionsReader._standardOptions; +var readOptions = optionsReader.readOptions; + + +describe('readOptions', function() { + it('standard options are used if options is undefined', function() { + assert.deepEqual(standardOptions, readOptions(undefined)); + }); + + it('standard options are used if options is empty', function() { + assert.deepEqual(standardOptions, readOptions({})); + }); +}); -- cgit v1.2.3