-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test for yargs custom instance (more flexible check isYargs)
- Loading branch information
1 parent
3e26bb2
commit 802a8d6
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* file-store-test.js: Tests for the nconf File store. | ||
* | ||
* (C) 2011, Charlie Robbins and the Contributors. | ||
* | ||
*/ | ||
|
||
var fs = require('fs'), | ||
path = require('path'), | ||
vows = require('vows'), | ||
assert = require('assert'), | ||
nconf = require('../lib/nconf'), | ||
yargs = require('yargs') | ||
|
||
vows.describe('nconf/argv').addBatch({ | ||
"When using the nconf": { | ||
"with a custom yargs": { | ||
topic: function () { | ||
fs.readFile(path.join(__dirname, '..', 'package.json'), this.callback); | ||
}, | ||
}, | ||
"with the default yars": { | ||
} | ||
} | ||
}).export(module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters