You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/git-tasks.js
+83-23
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,8 @@ test.afterEach(() => {
15
15
});
16
16
17
17
test.serial('should fail when release branch is not specified, current branch is not the release branch, and publishing from any branch not permitted',asynct=>{
18
-
constgitTasks=awaitstubExeca(t,[{
18
+
constgitTasks=awaitstubExeca([{
19
19
command: 'git symbolic-ref --short HEAD',
20
-
exitCode: 0,
21
20
stdout: 'feature',
22
21
}]);
23
22
@@ -30,9 +29,8 @@ test.serial('should fail when release branch is not specified, current branch is
30
29
});
31
30
32
31
test.serial('should fail when current branch is not the specified release branch and publishing from any branch not permitted',asynct=>{
33
-
constgitTasks=awaitstubExeca(t,[{
32
+
constgitTasks=awaitstubExeca([{
34
33
command: 'git symbolic-ref --short HEAD',
35
-
exitCode: 0,
36
34
stdout: 'feature',
37
35
}]);
38
36
@@ -45,21 +43,26 @@ test.serial('should fail when current branch is not the specified release branch
45
43
});
46
44
47
45
test.serial('should not fail when current branch not master and publishing from any branch permitted',asynct=>{
0 commit comments