aboutsummaryrefslogtreecommitdiff
path: root/tests/options-reader.tests.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options-reader.tests.js')
-rw-r--r--tests/options-reader.tests.js16
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({}));
+ });
+});