Skip to content

Commit

Permalink
Added npm-uitls badDirectory test.
Browse files Browse the repository at this point in the history
  • Loading branch information
doctorrustynelson committed Mar 12, 2016
1 parent c4cf025 commit 389bfcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/utils/npm-utils-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ module.exports.installToDirTests = {
unit.done();
} );
},

installBadDir: function( unit ){

var tempdir = '/a/bad/dir';

npm_utils.installToDir( 'lodash', tempdir, {}, function( err ){
unit.notEqual( err, null, 'Error on callback.' );
unit.done();
} );
},

installAnyLodash: function( unit ){

Expand Down

0 comments on commit 389bfcb

Please sign in to comment.