-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathpull_test.js
More file actions
47 lines (38 loc) · 1.13 KB
/
Copy pathpull_test.js
File metadata and controls
47 lines (38 loc) · 1.13 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'use strict';
var command = require('../lib/commands').pull;
var Test = require('./_common');
describe('pull', function () {
it('should pull branch', function (done) {
var options = {
};
new Test(command, options)
.expect(['pull', 'origin'])
.run(done);
});
it('should accept branch option', function (done) {
var options = {
branch: 'master'
};
new Test(command, options)
.expect(['pull', 'origin', 'master'])
.run(done);
});
it('should accept --rebase option', function (done) {
var options = {
branch: 'master',
rebase: true
};
new Test(command, options)
.expect(['pull', '--rebase=true', 'origin', 'master'])
.run(done);
});
it('should accept --rebase option with preserve', function (done) {
var options = {
branch: 'master',
rebase: 'preserve'
};
new Test(command, options)
.expect(['pull', '--rebase=preserve', 'origin', 'master'])
.run(done);
});
});