Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test integration for process.env integration
- Loading branch information
Damon Oehlman
committed
Dec 31, 2012
1 parent
11ea425
commit 012ff87
Showing
2 changed files
with
21 additions
and
7 deletions.
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,13 @@ | ||
var assert = require('assert'), | ||
clarity = require('..'); | ||
|
||
describe('object value replacement - shallow', function() { | ||
before(function() { | ||
clarity.clear(); | ||
clarity.use(process.env); | ||
}); | ||
|
||
it('should be able to replace an common environment variable (USER)', function() { | ||
assert.notEqual(clarity.decode('**USER**'), '**USER**'); | ||
}); | ||
}); |