Skip to content

Commit 5e09eec

Browse files
committed
Update: Repair tests for babel change
1 parent 2146218 commit 5e09eec

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/completion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ var code = require('code');
55

66
var child = require('child_process');
77

8-
lab.experiment('flag: --completion', function () {
8+
lab.experiment('flag: --completion', function() {
99

1010
['bash', 'fish', 'powershell', 'zsh'].forEach(function(type) {
11-
lab.test('returns completion script for ' + type, function (done) {
11+
lab.test('returns completion script for ' + type, function(done) {
1212
child.exec('node ' + __dirname + '/../bin/gulp.js --completion=' + type, function(err, stdout) {
1313
code.expect(stdout).to.contain('gulp --completion=' + type);
1414
done(err);
1515
});
1616
});
1717
});
1818

19-
lab.test('shows error message for unknown completion type', function (done) {
19+
lab.test('shows error message for unknown completion type', function(done) {
2020
child.exec('node ' + __dirname + '/../bin/gulp.js --completion=unknown', function(err, stdout) {
2121
code.expect(stdout).to.contain('rules for \'unknown\' not found');
2222
done();

test/flags-task-simple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var output = fs.readFileSync(__dirname + '/expected/flags-tasks-simple.txt', 'ut
1111
lab.experiment('flag: --tasks-simple', function() {
1212

1313
lab.test('prints the task list in simple format', function(done) {
14-
child.exec('node ' + __dirname + '/../bin/gulp.js --tasks-simple --cwd ./test', function(err, stdout) {
14+
child.exec('node ' + __dirname + '/../bin/gulp.js --tasks-simple --cwd ./test/fixtures', function(err, stdout) {
1515
code.expect(stdout).to.equal(output);
1616
done(err);
1717
});

test/flags-tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var child = require('child_process');
88
lab.experiment('flag: --tasks', function() {
99

1010
lab.test('prints the task list', function(done) {
11-
child.exec('node ' + __dirname + '/../bin/gulp.js --tasks --cwd ./test', function(err, stdout) {
11+
child.exec('node ' + __dirname + '/../bin/gulp.js --tasks --cwd ./test/fixtures', function(err, stdout) {
1212
code.expect(stdout).to.contain('Tasks for');
1313
stdout = stdout.replace(/\\/g, '/').split('Tasks for')[1].split('\n');
1414
code.expect(stdout[0]).to.contain('/gulp-cli/test');

test/flags-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var gulpVersion = require('gulp/package.json').version;
1111
lab.experiment('flag: --version', function() {
1212

1313
lab.test('prints the version of CLI and local gulp', function(done) {
14-
child.exec('node ' + __dirname + '/../bin/gulp.js --version --cwd ./test', function(err, stdout) {
14+
child.exec('node ' + __dirname + '/../bin/gulp.js --version --cwd ./test/fixtures', function(err, stdout) {
1515
code.expect(stdout).to.contain('CLI version ' + cliVersion);
1616
code.expect(stdout).to.contain('Local version ' + gulpVersion);
1717
done(err);

0 commit comments

Comments
 (0)