Skip to content

Commit 2a3009c

Browse files
committed
Update snapshots to Jest format changes
1 parent 411e407 commit 2a3009c

File tree

1 file changed

+70
-70
lines changed

1 file changed

+70
-70
lines changed

tests/__snapshots__/index.test.ts.snap

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`create-an-issue checks the value of update_existing 1`] = `
4-
Object {
5-
"assignees": Array [
4+
{
5+
"assignees": [
66
"octocat",
77
"JasonEtco",
88
],
99
"body": "Goodbye!",
10-
"labels": Array [],
10+
"labels": [],
1111
"milestone": 1,
1212
"title": "Hello!",
1313
}
1414
`;
1515

1616
exports[`create-an-issue creates a new issue 1`] = `
17-
Object {
18-
"assignees": Array [],
17+
{
18+
"assignees": [],
1919
"body": "Goodbye!",
20-
"labels": Array [],
20+
"labels": [],
2121
"title": "Hello!",
2222
}
2323
`;
2424

2525
exports[`create-an-issue creates a new issue 2`] = `
26-
Array [
27-
Array [
26+
[
27+
[
2828
"Created issue Hello!#1: www",
2929
],
3030
]
3131
`;
3232

3333
exports[`create-an-issue creates a new issue from a different template 1`] = `
34-
Object {
35-
"assignees": Array [],
34+
{
35+
"assignees": [],
3636
"body": "Goodbye!",
37-
"labels": Array [],
37+
"labels": [],
3838
"title": "Different file",
3939
}
4040
`;
4141

4242
exports[`create-an-issue creates a new issue from a different template 2`] = `
43-
Array [
44-
Array [
43+
[
44+
[
4545
"Created issue Different file#1: www",
4646
],
4747
]
4848
`;
4949

5050
exports[`create-an-issue creates a new issue when updating existing issues is enabled but no issues with the same title exist 1`] = `
51-
Object {
52-
"assignees": Array [
51+
{
52+
"assignees": [
5353
"octocat",
5454
"JasonEtco",
5555
],
5656
"body": "Goodbye!",
57-
"labels": Array [],
57+
"labels": [],
5858
"milestone": 1,
5959
"title": "Hello!",
6060
}
6161
`;
6262

6363
exports[`create-an-issue creates a new issue with a milestone passed by input 1`] = `
64-
Object {
65-
"assignees": Array [
64+
{
65+
"assignees": [
6666
"octocat",
6767
"JasonEtco",
6868
],
6969
"body": "Goodbye!",
70-
"labels": Array [],
70+
"labels": [],
7171
"milestone": 1,
7272
"title": "Hello!",
7373
}
7474
`;
7575

7676
exports[`create-an-issue creates a new issue with an assignee passed by input 1`] = `
77-
Object {
78-
"assignees": Array [
77+
{
78+
"assignees": [
7979
"octocat",
8080
],
8181
"body": "Goodbye!",
82-
"labels": Array [],
82+
"labels": [],
8383
"title": "Hello!",
8484
}
8585
`;
8686

8787
exports[`create-an-issue creates a new issue with an assignee passed by input 2`] = `
88-
Array [
89-
Array [
88+
[
89+
[
9090
"Created issue Hello!#1: www",
9191
],
9292
]
9393
`;
9494

9595
exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 1`] = `
96-
Object {
97-
"assignees": Array [
96+
{
97+
"assignees": [
9898
"JasonEtco",
9999
"matchai",
100100
],
101101
"body": "The action create-an-issue is the best action.",
102-
"labels": Array [
102+
"labels": [
103103
"bug",
104104
"enhancement",
105105
],
@@ -108,20 +108,20 @@ Object {
108108
`;
109109

110110
exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 2`] = `
111-
Array [
112-
Array [
111+
[
112+
[
113113
"Created issue DO EVERYTHING#1: www",
114114
],
115115
]
116116
`;
117117

118118
exports[`create-an-issue creates a new issue with assignees, labels and a milestone 1`] = `
119-
Object {
120-
"assignees": Array [
119+
{
120+
"assignees": [
121121
"JasonEtco",
122122
],
123123
"body": "The action create-an-issue is the best action.",
124-
"labels": Array [
124+
"labels": [
125125
"bugs",
126126
],
127127
"milestone": 2,
@@ -130,108 +130,108 @@ Object {
130130
`;
131131

132132
exports[`create-an-issue creates a new issue with assignees, labels and a milestone 2`] = `
133-
Array [
134-
Array [
133+
[
134+
[
135135
"Created issue DO EVERYTHING#1: www",
136136
],
137137
]
138138
`;
139139

140140
exports[`create-an-issue creates a new issue with multiple assignees passed by input 1`] = `
141-
Object {
142-
"assignees": Array [
141+
{
142+
"assignees": [
143143
"octocat",
144144
"JasonEtco",
145145
],
146146
"body": "Goodbye!",
147-
"labels": Array [],
147+
"labels": [],
148148
"title": "Hello!",
149149
}
150150
`;
151151

152152
exports[`create-an-issue creates a new issue with multiple assignees passed by input 2`] = `
153-
Array [
154-
Array [
153+
[
154+
[
155155
"Created issue Hello!#1: www",
156156
],
157157
]
158158
`;
159159

160160
exports[`create-an-issue creates a new issue with some template variables 1`] = `
161-
Object {
162-
"assignees": Array [],
161+
{
162+
"assignees": [],
163163
"body": "The action create-an-issue is the best action.
164164
165165
Environment variable foo is great.
166166
",
167-
"labels": Array [],
167+
"labels": [],
168168
"title": "Hello create-an-issue",
169169
}
170170
`;
171171

172172
exports[`create-an-issue creates a new issue with some template variables 2`] = `
173-
Array [
174-
Array [
173+
[
174+
[
175175
"Created issue Hello create-an-issue#1: www",
176176
],
177177
]
178178
`;
179179

180180
exports[`create-an-issue creates a new issue with the context.repo template variables 1`] = `
181-
Object {
182-
"assignees": Array [],
181+
{
182+
"assignees": [],
183183
"body": "Are you looking for results on our gh-pages branch?
184184
185185
Just click this link! https://JasonEtco.github.io/waddup/path/to/my/pageindex.html
186186
",
187-
"labels": Array [],
187+
"labels": [],
188188
"title": "This Issue has a generalizable GitHub Pages Link",
189189
}
190190
`;
191191

192192
exports[`create-an-issue creates a new issue with the context.repo template variables 2`] = `
193-
Array [
194-
Array [
193+
[
194+
[
195195
"Created issue This Issue has a generalizable GitHub Pages Link#1: www",
196196
],
197197
]
198198
`;
199199

200200
exports[`create-an-issue finds, but does not update an existing issue with the same title 1`] = `
201-
Object {
202-
"assignees": Array [
201+
{
202+
"assignees": [
203203
"octocat",
204204
"JasonEtco",
205205
],
206206
"body": "Goodbye!",
207-
"labels": Array [],
207+
"labels": [],
208208
"milestone": 1,
209209
"title": "Hello!",
210210
}
211211
`;
212212

213213
exports[`create-an-issue logs a helpful error if creating an issue throws an error 1`] = `
214-
Array [
215-
Array [
214+
[
215+
[
216216
"An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
217217
],
218-
Array [
218+
[
219219
[HttpError: Validation error],
220220
],
221221
]
222222
`;
223223

224224
exports[`create-an-issue logs a helpful error if creating an issue throws an error with more errors 1`] = `
225-
Array [
226-
Array [
225+
[
226+
[
227227
"An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
228228
],
229-
Array [
229+
[
230230
[HttpError: Validation error: {"foo":true}],
231231
],
232-
Array [
233-
Array [
234-
Object {
232+
[
233+
[
234+
{
235235
"foo": true,
236236
},
237237
],
@@ -240,16 +240,16 @@ Array [
240240
`;
241241

242242
exports[`create-an-issue logs a helpful error if updating an issue throws an error with more errors 1`] = `
243-
Array [
244-
Array [
243+
[
244+
[
245245
"An error occurred while updating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
246246
],
247-
Array [
247+
[
248248
[HttpError: Validation error: {"foo":true}],
249249
],
250-
Array [
251-
Array [
252-
Object {
250+
[
251+
[
252+
{
253253
"foo": true,
254254
},
255255
],
@@ -258,13 +258,13 @@ Array [
258258
`;
259259

260260
exports[`create-an-issue updates an existing open issue with the same title 1`] = `
261-
Object {
262-
"assignees": Array [
261+
{
262+
"assignees": [
263263
"octocat",
264264
"JasonEtco",
265265
],
266266
"body": "Goodbye!",
267-
"labels": Array [],
267+
"labels": [],
268268
"milestone": 1,
269269
"title": "Hello!",
270270
}

0 commit comments

Comments
 (0)