1- import { describe , expect , it } from 'vitest' ;
1+ import { describe , expect , it } from 'vitest'
22
33import { createAlertUXLookup } from './dist/alert-rules'
44
@@ -51,85 +51,99 @@ describe('Alert Rule UX', () => {
5151 }
5252 ]
5353 } )
54- expect ( noEntriesLookup ( {
55- package : {
56- name : 'bar' ,
57- version : '0.0.0'
58- } ,
59- alert : { type : 'willError' }
60- } ) ) . toMatchInlineSnapshot ( `
54+ expect (
55+ noEntriesLookup ( {
56+ package : {
57+ name : 'bar' ,
58+ version : '0.0.0'
59+ } ,
60+ alert : { type : 'willError' }
61+ } )
62+ ) . toMatchInlineSnapshot ( `
6163 {
6264 "block": true,
6365 "display": true,
6466 }
6567 ` )
66- expect ( noEntriesLookup ( {
67- package : {
68- name : 'bar' ,
69- version : '0.0.0'
70- } ,
71- alert : { type : 'willIgnore' }
72- } ) ) . toMatchInlineSnapshot ( `
68+ expect (
69+ noEntriesLookup ( {
70+ package : {
71+ name : 'bar' ,
72+ version : '0.0.0'
73+ } ,
74+ alert : { type : 'willIgnore' }
75+ } )
76+ ) . toMatchInlineSnapshot ( `
7377 {
7478 "block": false,
7579 "display": false,
7680 }
7781 ` )
78- expect ( noEntriesLookup ( {
79- package : {
80- name : 'bar' ,
81- version : '0.0.0'
82- } ,
83- alert : { type : 'willWarn' }
84- } ) ) . toMatchInlineSnapshot ( `
82+ expect (
83+ noEntriesLookup ( {
84+ package : {
85+ name : 'bar' ,
86+ version : '0.0.0'
87+ } ,
88+ alert : { type : 'willWarn' }
89+ } )
90+ ) . toMatchInlineSnapshot ( `
8591 {
8692 "block": false,
8793 "display": true,
8894 }
8995 ` )
90- expect ( noEntriesLookup ( {
91- package : {
92- name : 'bar' ,
93- version : '0.0.0'
94- } ,
95- alert : { type : 'fromDeferString' }
96- } ) ) . toMatchInlineSnapshot ( `
96+ expect (
97+ noEntriesLookup ( {
98+ package : {
99+ name : 'bar' ,
100+ version : '0.0.0'
101+ } ,
102+ alert : { type : 'fromDeferString' }
103+ } )
104+ ) . toMatchInlineSnapshot ( `
97105 {
98106 "block": false,
99107 "display": true,
100108 }
101109 ` )
102- expect ( noEntriesLookup ( {
103- package : {
104- name : 'bar' ,
105- version : '0.0.0'
106- } ,
107- alert : { type : 'fromUndefinedAction' }
108- } ) ) . toMatchInlineSnapshot ( `
110+ expect (
111+ noEntriesLookup ( {
112+ package : {
113+ name : 'bar' ,
114+ version : '0.0.0'
115+ } ,
116+ alert : { type : 'fromUndefinedAction' }
117+ } )
118+ ) . toMatchInlineSnapshot ( `
109119 {
110120 "block": false,
111121 "display": true,
112122 }
113123 ` )
114- expect ( noEntriesLookup ( {
115- package : {
116- name : 'bar' ,
117- version : '0.0.0'
118- } ,
119- alert : { type : 'fromUndefinedRule' }
120- } ) ) . toMatchInlineSnapshot ( `
124+ expect (
125+ noEntriesLookup ( {
126+ package : {
127+ name : 'bar' ,
128+ version : '0.0.0'
129+ } ,
130+ alert : { type : 'fromUndefinedRule' }
131+ } )
132+ ) . toMatchInlineSnapshot ( `
121133 {
122134 "block": false,
123135 "display": true,
124136 }
125137 ` )
126- expect ( noEntriesLookup ( {
127- package : {
128- name : 'bar' ,
129- version : '0.0.0'
130- } ,
131- alert : { type : 'fromMiddleConfig' }
132- } ) ) . toMatchInlineSnapshot ( `
138+ expect (
139+ noEntriesLookup ( {
140+ package : {
141+ name : 'bar' ,
142+ version : '0.0.0'
143+ } ,
144+ alert : { type : 'fromMiddleConfig' }
145+ } )
146+ ) . toMatchInlineSnapshot ( `
133147 {
134148 "block": false,
135149 "display": true,
@@ -143,13 +157,15 @@ describe('Alert Rule UX', () => {
143157 } ,
144158 entries : [ ]
145159 } )
146- expect ( emptyLookup ( {
147- package : {
148- name : 'bar' ,
149- version : '0.0.0'
150- } ,
151- alert : { type : '404' }
152- } ) ) . toMatchInlineSnapshot ( `
160+ expect (
161+ emptyLookup ( {
162+ package : {
163+ name : 'bar' ,
164+ version : '0.0.0'
165+ } ,
166+ alert : { type : '404' }
167+ } )
168+ ) . toMatchInlineSnapshot ( `
153169 {
154170 "block": true,
155171 "display": true,
@@ -182,49 +198,57 @@ describe('Alert Rule UX', () => {
182198 }
183199 ]
184200 } )
185- expect ( booleanLookup ( {
186- package : {
187- name : 'bar' ,
188- version : '0.0.0'
189- } ,
190- alert : { type : 'defaultTrue' }
191- } ) ) . toMatchInlineSnapshot ( `
201+ expect (
202+ booleanLookup ( {
203+ package : {
204+ name : 'bar' ,
205+ version : '0.0.0'
206+ } ,
207+ alert : { type : 'defaultTrue' }
208+ } )
209+ ) . toMatchInlineSnapshot ( `
192210 {
193211 "block": true,
194212 "display": true,
195213 }
196214 ` )
197- expect ( booleanLookup ( {
198- package : {
199- name : 'bar' ,
200- version : '0.0.0'
201- } ,
202- alert : { type : 'orgTrue' }
203- } ) ) . toMatchInlineSnapshot ( `
215+ expect (
216+ booleanLookup ( {
217+ package : {
218+ name : 'bar' ,
219+ version : '0.0.0'
220+ } ,
221+ alert : { type : 'orgTrue' }
222+ } )
223+ ) . toMatchInlineSnapshot ( `
204224 {
205225 "block": true,
206226 "display": true,
207227 }
208228 ` )
209- expect ( booleanLookup ( {
210- package : {
211- name : 'bar' ,
212- version : '0.0.0'
213- } ,
214- alert : { type : 'defaultFalse' }
215- } ) ) . toMatchInlineSnapshot ( `
229+ expect (
230+ booleanLookup ( {
231+ package : {
232+ name : 'bar' ,
233+ version : '0.0.0'
234+ } ,
235+ alert : { type : 'defaultFalse' }
236+ } )
237+ ) . toMatchInlineSnapshot ( `
216238 {
217239 "block": false,
218240 "display": false,
219241 }
220242 ` )
221- expect ( booleanLookup ( {
222- package : {
223- name : 'bar' ,
224- version : '0.0.0'
225- } ,
226- alert : { type : 'orgFalse' }
227- } ) ) . toMatchInlineSnapshot ( `
243+ expect (
244+ booleanLookup ( {
245+ package : {
246+ name : 'bar' ,
247+ version : '0.0.0'
248+ } ,
249+ alert : { type : 'orgFalse' }
250+ } )
251+ ) . toMatchInlineSnapshot ( `
228252 {
229253 "block": false,
230254 "display": false,
@@ -274,37 +298,43 @@ describe('Alert Rule UX', () => {
274298 }
275299 ]
276300 } )
277- expect ( multiSettings ( {
278- package : {
279- name : 'bar' ,
280- version : '0.0.0'
281- } ,
282- alert : { type : 'warn_then_error' }
283- } ) ) . toMatchInlineSnapshot ( `
301+ expect (
302+ multiSettings ( {
303+ package : {
304+ name : 'bar' ,
305+ version : '0.0.0'
306+ } ,
307+ alert : { type : 'warn_then_error' }
308+ } )
309+ ) . toMatchInlineSnapshot ( `
284310 {
285311 "block": true,
286312 "display": true,
287313 }
288314 ` )
289- expect ( multiSettings ( {
290- package : {
291- name : 'bar' ,
292- version : '0.0.0'
293- } ,
294- alert : { type : 'ignore_then_missing' }
295- } ) ) . toMatchInlineSnapshot ( `
315+ expect (
316+ multiSettings ( {
317+ package : {
318+ name : 'bar' ,
319+ version : '0.0.0'
320+ } ,
321+ alert : { type : 'ignore_then_missing' }
322+ } )
323+ ) . toMatchInlineSnapshot ( `
296324 {
297325 "block": true,
298326 "display": true,
299327 }
300328 ` )
301- expect ( multiSettings ( {
302- package : {
303- name : 'bar' ,
304- version : '0.0.0'
305- } ,
306- alert : { type : 'ignore_then_defer' }
307- } ) ) . toMatchInlineSnapshot ( `
329+ expect (
330+ multiSettings ( {
331+ package : {
332+ name : 'bar' ,
333+ version : '0.0.0'
334+ } ,
335+ alert : { type : 'ignore_then_defer' }
336+ } )
337+ ) . toMatchInlineSnapshot ( `
308338 {
309339 "block": true,
310340 "display": true,
@@ -336,13 +366,15 @@ describe('Alert Rule UX', () => {
336366 }
337367 ]
338368 } )
339- expect ( shadowedLookup ( {
340- package : {
341- name : 'bar' ,
342- version : '0.0.0'
343- } ,
344- alert : { type : 'willWarn' }
345- } ) ) . toMatchInlineSnapshot ( `
369+ expect (
370+ shadowedLookup ( {
371+ package : {
372+ name : 'bar' ,
373+ version : '0.0.0'
374+ } ,
375+ alert : { type : 'willWarn' }
376+ } )
377+ ) . toMatchInlineSnapshot ( `
346378 {
347379 "block": false,
348380 "display": false,
0 commit comments