Skip to content

Commit

Permalink
fix arguments of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Dec 10, 2014
1 parent aa4baec commit ff8f5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ test('setPropertyFromFile()', function(t) {

var option = {encoding: Boolean};

setPropertyFromFile({}, 'index.js', {encoding: Boolean}, function(err, res) {
setPropertyFromFile({}, 'index.js', option, function(err, res) {
t.deepEqual(
[err, res],
[null, {index: true}],
Expand All @@ -101,7 +101,7 @@ test('setPropertyFromFile()', function(t) {
});

t.throws(
setPropertyFromFile.bind(null, null, noop),
setPropertyFromFile.bind(null, null, '.gitattributes', {}, noop),
/TypeError.*must be an object/,
'should throw a type error when the first argument is not an object.'
);
Expand Down

0 comments on commit ff8f5c2

Please sign in to comment.