Kieran Gibb 2 years ago
parent
commit
e106d39fed
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      test/index.test.js

+ 6
- 0
test/index.test.js View File

@@ -83,6 +83,12 @@ describe('options', (context) => {
83 83
     assert.same(config.options.get('mount'), './mnt', 'saved options')
84 84
     next()
85 85
   })
86
+
87
+  context('custom', (assert, next) => {
88
+    var config = Config(storage, { mount: '/tmp' })
89
+    assert.same(config.options.get('mount'), '/tmp', 'mount defaults to /tmp')
90
+    next()
91
+  })
86 92
 })
87 93
 
88 94
 describe('set', (context) => {