5
5
parseConfig ,
6
6
parseInputFiles ,
7
7
unmatchedPatterns ,
8
- uploadUrl
8
+ uploadUrl ,
9
9
} from "../src/util" ;
10
10
import * as assert from "assert" ;
11
11
@@ -51,7 +51,7 @@ describe("util", () => {
51
51
input_tag_name : undefined ,
52
52
input_target_commitish : undefined ,
53
53
input_discussion_category_name : undefined ,
54
- input_generate_release_notes : false
54
+ input_generate_release_notes : false ,
55
55
} )
56
56
) ;
57
57
} ) ;
@@ -71,7 +71,7 @@ describe("util", () => {
71
71
input_tag_name : undefined ,
72
72
input_target_commitish : undefined ,
73
73
input_discussion_category_name : undefined ,
74
- input_generate_release_notes : false
74
+ input_generate_release_notes : false ,
75
75
} )
76
76
) ;
77
77
} ) ;
@@ -91,7 +91,7 @@ describe("util", () => {
91
91
input_tag_name : undefined ,
92
92
input_target_commitish : undefined ,
93
93
input_discussion_category_name : undefined ,
94
- input_generate_release_notes : false
94
+ input_generate_release_notes : false ,
95
95
} )
96
96
) ;
97
97
} ) ;
@@ -107,7 +107,7 @@ describe("util", () => {
107
107
// so we cover that in a test case here to ensure undefined values are actually
108
108
// resolved as undefined and not empty strings
109
109
INPUT_TARGET_COMMITISH : "" ,
110
- INPUT_DISCUSSION_CATEGORY_NAME : ""
110
+ INPUT_DISCUSSION_CATEGORY_NAME : "" ,
111
111
} ) ,
112
112
{
113
113
github_ref : "" ,
@@ -124,15 +124,15 @@ describe("util", () => {
124
124
input_fail_on_unmatched_files : false ,
125
125
input_target_commitish : undefined ,
126
126
input_discussion_category_name : undefined ,
127
- input_generate_release_notes : false
127
+ input_generate_release_notes : false ,
128
128
}
129
129
) ;
130
130
} ) ;
131
131
132
132
it ( "parses basic config with commitish" , ( ) => {
133
133
assert . deepStrictEqual (
134
134
parseConfig ( {
135
- INPUT_TARGET_COMMITISH : "affa18ef97bc9db20076945705aba8c516139abd"
135
+ INPUT_TARGET_COMMITISH : "affa18ef97bc9db20076945705aba8c516139abd" ,
136
136
} ) ,
137
137
{
138
138
github_ref : "" ,
@@ -149,14 +149,14 @@ describe("util", () => {
149
149
input_fail_on_unmatched_files : false ,
150
150
input_target_commitish : "affa18ef97bc9db20076945705aba8c516139abd" ,
151
151
input_discussion_category_name : undefined ,
152
- input_generate_release_notes : false
152
+ input_generate_release_notes : false ,
153
153
}
154
154
) ;
155
155
} ) ;
156
156
it ( "supports discussion category names" , ( ) => {
157
157
assert . deepStrictEqual (
158
158
parseConfig ( {
159
- INPUT_DISCUSSION_CATEGORY_NAME : "releases"
159
+ INPUT_DISCUSSION_CATEGORY_NAME : "releases" ,
160
160
} ) ,
161
161
{
162
162
github_ref : "" ,
@@ -173,15 +173,15 @@ describe("util", () => {
173
173
input_fail_on_unmatched_files : false ,
174
174
input_target_commitish : undefined ,
175
175
input_discussion_category_name : "releases" ,
176
- input_generate_release_notes : false
176
+ input_generate_release_notes : false ,
177
177
}
178
178
) ;
179
179
} ) ;
180
180
181
181
it ( "supports generating release notes" , ( ) => {
182
182
assert . deepStrictEqual (
183
183
parseConfig ( {
184
- INPUT_GENERATE_RELEASE_NOTES : "true"
184
+ INPUT_GENERATE_RELEASE_NOTES : "true" ,
185
185
} ) ,
186
186
{
187
187
github_ref : "" ,
@@ -198,7 +198,7 @@ describe("util", () => {
198
198
input_fail_on_unmatched_files : false ,
199
199
input_target_commitish : undefined ,
200
200
input_discussion_category_name : undefined ,
201
- input_generate_release_notes : true
201
+ input_generate_release_notes : true ,
202
202
}
203
203
) ;
204
204
} ) ;
@@ -209,7 +209,7 @@ describe("util", () => {
209
209
INPUT_DRAFT : "false" ,
210
210
INPUT_PRERELEASE : "true" ,
211
211
GITHUB_TOKEN : "env-token" ,
212
- INPUT_TOKEN : "input-token"
212
+ INPUT_TOKEN : "input-token" ,
213
213
} ) ,
214
214
{
215
215
github_ref : "" ,
@@ -226,7 +226,7 @@ describe("util", () => {
226
226
input_fail_on_unmatched_files : false ,
227
227
input_target_commitish : undefined ,
228
228
input_discussion_category_name : undefined ,
229
- input_generate_release_notes : false
229
+ input_generate_release_notes : false ,
230
230
}
231
231
) ;
232
232
} ) ;
@@ -235,7 +235,7 @@ describe("util", () => {
235
235
parseConfig ( {
236
236
INPUT_DRAFT : "false" ,
237
237
INPUT_PRERELEASE : "true" ,
238
- INPUT_TOKEN : "input-token"
238
+ INPUT_TOKEN : "input-token" ,
239
239
} ) ,
240
240
{
241
241
github_ref : "" ,
@@ -252,15 +252,15 @@ describe("util", () => {
252
252
input_fail_on_unmatched_files : false ,
253
253
input_target_commitish : undefined ,
254
254
input_discussion_category_name : undefined ,
255
- input_generate_release_notes : false
255
+ input_generate_release_notes : false ,
256
256
}
257
257
) ;
258
258
} ) ;
259
259
it ( "parses basic config with draft and prerelease" , ( ) => {
260
260
assert . deepStrictEqual (
261
261
parseConfig ( {
262
262
INPUT_DRAFT : "false" ,
263
- INPUT_PRERELEASE : "true"
263
+ INPUT_PRERELEASE : "true" ,
264
264
} ) ,
265
265
{
266
266
github_ref : "" ,
@@ -277,14 +277,14 @@ describe("util", () => {
277
277
input_fail_on_unmatched_files : false ,
278
278
input_target_commitish : undefined ,
279
279
input_discussion_category_name : undefined ,
280
- input_generate_release_notes : false
280
+ input_generate_release_notes : false ,
281
281
}
282
282
) ;
283
283
} ) ;
284
284
it ( "parses basic config with append_body" , ( ) => {
285
285
assert . deepStrictEqual (
286
286
parseConfig ( {
287
- INPUT_APPEND_BODY : "true"
287
+ INPUT_APPEND_BODY : "true" ,
288
288
} ) ,
289
289
{
290
290
github_ref : "" ,
@@ -301,7 +301,7 @@ describe("util", () => {
301
301
input_fail_on_unmatched_files : false ,
302
302
input_target_commitish : undefined ,
303
303
input_discussion_category_name : undefined ,
304
- input_generate_release_notes : false
304
+ input_generate_release_notes : false ,
305
305
}
306
306
) ;
307
307
} ) ;
0 commit comments