-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate.js
More file actions
27 lines (23 loc) · 801 Bytes
/
create.js
File metadata and controls
27 lines (23 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
'use strict';
exports = module.exports = function (Gulp) {
it('create() should log by default', function () {
var gulp = Gulp.create();
gulp.log.should.be.eql(true);
});
it('create() should have no repl by default', function () {
var gulp = Gulp.create();
gulp.should.not.have.property('repl');
});
it('create({log: false}) should disable logging', function () {
var gulp = Gulp.create({log: false});
gulp.props.log.should.be.eql(false);
gulp.log.should.be.eql(false);
});
it('create({repl: true}) should make a repl at gulp.repl', function () {
var gulp = Gulp.create({repl: true});
var readline = require('readline');
gulp.should.have.property('repl');
gulp.repl.should.be.instanceof(readline.Interface);
gulp.repl.close();
});
};