@@ -19,7 +19,7 @@ describe('action()', (): void => {
19
19
expect ( input ) . toBeCalledTimes ( 1 ) ;
20
20
expect ( input ) . toHaveBeenNthCalledWith < [ string , ActionInputFunctionOptions ] > ( 1 , 'version' , { required : true } ) ;
21
21
22
- expect ( output ) . toBeCalledTimes ( 5 ) ;
22
+ expect ( output ) . toBeCalledTimes ( 6 ) ;
23
23
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 1 , 'version' , '1.2.3' ) ;
24
24
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 2 , 'major' , '1' ) ;
25
25
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 3 , 'minor' , '2' ) ;
@@ -34,7 +34,7 @@ describe('action()', (): void => {
34
34
const output = fn < ActionOutputFunction > ( ) ;
35
35
const fail = fn < ActionFailFunction > ( ) ;
36
36
37
- input . mockReturnValueOnce ( '10 .23.4' ) ;
37
+ input . mockReturnValueOnce ( 'v10 .23.4' ) ;
38
38
39
39
await action ( {
40
40
input,
@@ -45,7 +45,7 @@ describe('action()', (): void => {
45
45
expect ( input ) . toBeCalledTimes ( 1 ) ;
46
46
expect ( input ) . toHaveBeenNthCalledWith < [ string , ActionInputFunctionOptions ] > ( 1 , 'version' , { required : true } ) ;
47
47
48
- expect ( output ) . toBeCalledTimes ( 5 ) ;
48
+ expect ( output ) . toBeCalledTimes ( 6 ) ;
49
49
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 1 , 'version' , '10.23.4' ) ;
50
50
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 2 , 'major' , '10' ) ;
51
51
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 3 , 'minor' , '23' ) ;
@@ -60,7 +60,7 @@ describe('action()', (): void => {
60
60
const output = fn < ActionOutputFunction > ( ) ;
61
61
const fail = fn < ActionFailFunction > ( ) ;
62
62
63
- input . mockReturnValueOnce ( '2.3-alpha.2' ) ;
63
+ input . mockReturnValueOnce ( '2.3-alpha.2+001 ' ) ;
64
64
65
65
await action ( {
66
66
input,
@@ -71,12 +71,13 @@ describe('action()', (): void => {
71
71
expect ( input ) . toBeCalledTimes ( 1 ) ;
72
72
expect ( input ) . toHaveBeenNthCalledWith < [ string , ActionInputFunctionOptions ] > ( 1 , 'version' , { required : true } ) ;
73
73
74
- expect ( output ) . toBeCalledTimes ( 5 ) ;
74
+ expect ( output ) . toBeCalledTimes ( 6 ) ;
75
75
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 1 , 'version' , '2.3.0-alpha.2' ) ;
76
76
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 2 , 'major' , '2' ) ;
77
77
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 3 , 'minor' , '3' ) ;
78
78
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 4 , 'patch' , '0' ) ;
79
79
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 5 , 'extra' , 'alpha.2' ) ;
80
+ expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 6 , 'build' , '001' ) ;
80
81
81
82
expect ( fail ) . toBeCalledTimes ( 0 ) ;
82
83
} ) ;
@@ -97,12 +98,13 @@ describe('action()', (): void => {
97
98
expect ( input ) . toBeCalledTimes ( 1 ) ;
98
99
expect ( input ) . toHaveBeenNthCalledWith < [ string , ActionInputFunctionOptions ] > ( 1 , 'version' , { required : true } ) ;
99
100
100
- expect ( output ) . toBeCalledTimes ( 5 ) ;
101
+ expect ( output ) . toBeCalledTimes ( 6 ) ;
101
102
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 1 , 'version' , '4.36.14' ) ;
102
103
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 2 , 'major' , '4' ) ;
103
104
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 3 , 'minor' , '36' ) ;
104
105
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 4 , 'patch' , '14' ) ;
105
106
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 5 , 'extra' , '' ) ;
107
+ expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 6 , 'build' , '' ) ;
106
108
107
109
expect ( fail ) . toBeCalledTimes ( 0 ) ;
108
110
} ) ;
@@ -123,12 +125,13 @@ describe('action()', (): void => {
123
125
expect ( input ) . toBeCalledTimes ( 1 ) ;
124
126
expect ( input ) . toHaveBeenNthCalledWith < [ string , ActionInputFunctionOptions ] > ( 1 , 'version' , { required : true } ) ;
125
127
126
- expect ( output ) . toBeCalledTimes ( 5 ) ;
128
+ expect ( output ) . toBeCalledTimes ( 6 ) ;
127
129
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 1 , 'version' , '5.31.12-beta.1' ) ;
128
130
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 2 , 'major' , '5' ) ;
129
131
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 3 , 'minor' , '31' ) ;
130
132
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 4 , 'patch' , '12' ) ;
131
133
expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 5 , 'extra' , 'beta.1' ) ;
134
+ expect ( output ) . toHaveBeenNthCalledWith < [ string , string ] > ( 6 , 'build' , '' ) ;
132
135
133
136
expect ( fail ) . toBeCalledTimes ( 0 ) ;
134
137
} ) ;
0 commit comments