Skip to content

Commit 335dea1

Browse files
committed
fix(tests): fix breaking tests
1 parent 8be9215 commit 335dea1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/commands/set-default-argv.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var optimist = require('optimist');
22
var log = require('db-migrate-shared').log;
33

44
module.exports = function(internals, isModule) {
5-
65
var rc = require('rc');
76
var deepExtend = require('deep-extend');
87
var defaultConfig = {

test/integration/api_test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ lab.experiment('api', { parallel: true }, function() {
1313
var process_exit = process.exit,
1414
argv = process.argv,
1515
called = false,
16-
config = { cwd: __dirname };
16+
config = {};
1717

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

224224
options = Object.assign(options, {
225-
throwUncatched: true
225+
throwUncatched: true,
226+
cwd: __dirname
226227
});
227228

228229
return new mod(plugins, isModule, options, callback);

0 commit comments

Comments
 (0)