Skip to content

Commit

Permalink
add test case for flat file "me"
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Feb 21, 2016
1 parent 9618afb commit e661608
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/config/me
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 2 additions & 1 deletion test/config/test.flat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# comment
line1
line2
line3

line5
line5
7 changes: 7 additions & 0 deletions test/readers/flat.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ exports.load = {
test.deepEqual(result, 'line1');
test.done();
},
'returns hostname for "me"': function(test) {
test.expect(1);
var result = this.flat.load( 'test/config/me', null, null, regex);
console.log(result);
test.ok(result);
test.done();
},
};

0 comments on commit e661608

Please sign in to comment.