Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

just test it does not error

  • Loading branch information...
commit 291ab51429b7bc71d285306da477d750aaa6e27c 1 parent 8ec6151
Dominic Tarr authored August 05, 2012

Showing 2 changed files with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  package.json
  2. 14  test.js
3  package.json
@@ -18,5 +18,8 @@
18 18
   "dependencies": {
19 19
     "config-chain": "~0.3.2",
20 20
     "optimist": "~0.3.4"
  21
+  },
  22
+  "scripts": {
  23
+    "test": "node test.js"
21 24
   }
22 25
 }
14  test.js
... ...
@@ -0,0 +1,14 @@
  1
+
  2
+var n = 'rc'+Math.random()
  3
+var assert = require('assert')
  4
+
  5
+process.env[n+'_envOption'] = 42
  6
+
  7
+var config = require('./')(n, {
  8
+  option: true
  9
+})
  10
+
  11
+console.log(config)
  12
+
  13
+assert.equal(config.option, true)
  14
+assert.equal(config.envOption, 42)

0 notes on commit 291ab51

Please sign in to comment.
Something went wrong with that request. Please try again.