Skip to content

Commit

Permalink
fix(tests): fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrdtales committed Aug 13, 2017
1 parent 8be9215 commit 335dea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/commands/set-default-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ var optimist = require('optimist');
var log = require('db-migrate-shared').log;

module.exports = function(internals, isModule) {

var rc = require('rc');
var deepExtend = require('deep-extend');
var defaultConfig = {
Expand Down
5 changes: 3 additions & 2 deletions test/integration/api_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lab.experiment('api', { parallel: true }, function() {
var process_exit = process.exit,
argv = process.argv,
called = false,
config = { cwd: __dirname };
config = {};

// register cleanup method and start preparing the test
onCleanup(teardown);
Expand Down Expand Up @@ -222,7 +222,8 @@ function stubApiInstance(isModule, stubs, options, callback) {
options = options || {};

options = Object.assign(options, {
throwUncatched: true
throwUncatched: true,
cwd: __dirname
});

return new mod(plugins, isModule, options, callback);
Expand Down

0 comments on commit 335dea1

Please sign in to comment.