aboutsummaryrefslogtreecommitdiff
path: root/tests/options-reader.tests.js
blob: d493ae6af7f9d9abb3e1a0ecf43cc83533c1b5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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({}));
    });
});