Skip to content

Commit 775e55e

Browse files
JPeer264phated
authored andcommitted
Update: Improve test coverage for completions (#100)
1 parent 648c047 commit 775e55e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/completion.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,15 @@ describe('flag: --completion', function() {
3838
}
3939
});
4040

41+
it('shows error message for missing completion type', function(done) {
42+
runner({ verbose: false })
43+
.gulp('--completion')
44+
.run(cb);
45+
46+
function cb(err, stdout, stderr) {
47+
expect(stderr).toMatch('Missing completion type');
48+
done();
49+
}
50+
});
51+
4152
});

test/fixtures/gulpfiles/gulpfile-exports.babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ import gulp from 'gulp';
66

77
export function clean(){};
88
export function build(){};
9+
export const string = 'no function';
910
export const dist = gulp.series(clean, build);

0 commit comments

Comments
 (0)