Skip to content

Commit 0ba4009

Browse files
committed
cwd in push tests
1 parent 6e2d232 commit 0ba4009

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

test/commands/push-experiment.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var utils = require('../utils');
1111
var logger = require("../../lib/logger.js");
1212

1313
//verbose logging
14-
// chai.config.includeStack = true;
14+
// chai.config.includeStack = true;
1515
// logger.debugLevel = 'debug';
1616

1717
var ClientStub = function() {};
@@ -32,6 +32,7 @@ describe('Push Experiment Module', function() {
3232
//Initialize the project and create experiment
3333
utils.init(options, utils.experiment, [options, done]);
3434
utils.createOptimizelyToken(directory.project);
35+
process.chdir(directory.project);
3536
});
3637

3738

test/commands/push-variation-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe('Push Experiment Module', function() {
3333
//Initialize the project and create experiment
3434
utils.init(options, utils.experiment, [options, utils.variation, [options,done]]);
3535
utils.createOptimizelyToken(directory.project);
36+
process.chdir(directory.project);
3637
});
3738

3839
after(function() {

0 commit comments

Comments
 (0)