diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:18:23 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-01-07 22:18:23 +0000 |
| commit | bc6e9ac4ee638fdc11019c979e3f03b9d7098e3f (patch) | |
| tree | 3ecd67fd79a2dc16566723dcdaa22877c05bac1e /tests/options-reader.tests.js | |
| parent | b0bc37e59cb521890be25015a66a1ae5d4f5c6f7 (diff) | |
Add some very basic tests for options-reader
Diffstat (limited to 'tests/options-reader.tests.js')
| -rw-r--r-- | tests/options-reader.tests.js | 16 |
1 files changed, 16 insertions, 0 deletions
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({})); + }); +}); |
