@@ -207,9 +207,7 @@ describe('QuickStartCode', () => {
207207 expect ( buttons . length ) . toBeGreaterThan ( 0 ) ;
208208 await buttons [ 0 ] ! . vm . $emit ( 'click' ) ;
209209
210- expect ( writeTextMock ) . toHaveBeenCalledWith (
211- expect . stringContaining ( 'intake.cat.access_nri["test-datastore"]' )
212- ) ;
210+ expect ( writeTextMock ) . toHaveBeenCalledWith ( expect . stringContaining ( 'intake.cat.access_nri["test-datastore"]' ) ) ;
213211 } ) ;
214212
215213 // Test that the copy link button generates correct URL with filters
@@ -227,12 +225,8 @@ describe('QuickStartCode', () => {
227225 expect ( buttons . length ) . toBeGreaterThan ( 1 ) ;
228226 await buttons [ 1 ] ! . vm . $emit ( 'click' ) ;
229227
230- expect ( writeTextMock ) . toHaveBeenCalledWith (
231- expect . stringContaining ( 'project_filter=xp65' )
232- ) ;
233- expect ( writeTextMock ) . toHaveBeenCalledWith (
234- expect . stringContaining ( 'variable_filter=tas,pr' )
235- ) ;
228+ expect ( writeTextMock ) . toHaveBeenCalledWith ( expect . stringContaining ( 'project_filter=xp65' ) ) ;
229+ expect ( writeTextMock ) . toHaveBeenCalledWith ( expect . stringContaining ( 'variable_filter=tas,pr' ) ) ;
236230 } ) ;
237231
238232 // Test that the copy link button generates URL without filters when none active
@@ -247,9 +241,7 @@ describe('QuickStartCode', () => {
247241 expect ( buttons . length ) . toBeGreaterThan ( 1 ) ;
248242 await buttons [ 1 ] ! . vm . $emit ( 'click' ) ;
249243
250- expect ( writeTextMock ) . toHaveBeenCalledWith (
251- expect . stringMatching ( / \/ d a t a s t o r e \/ t e s t - d a t a s t o r e $ / )
252- ) ;
244+ expect ( writeTextMock ) . toHaveBeenCalledWith ( expect . stringMatching ( / \/ d a t a s t o r e \/ t e s t - d a t a s t o r e $ / ) ) ;
253245 } ) ;
254246
255247 // Test that required projects includes xp65 by default
@@ -413,10 +405,7 @@ describe('QuickStartCode', () => {
413405 wrapper = createWrapper ( {
414406 datastoreName : 'test-datastore' ,
415407 currentFilters : { } ,
416- rawData : [
417- { path : '/g/data/xp65/file1.nc' } ,
418- { path : '/g/data/xp65/file2.nc' } ,
419- ] ,
408+ rawData : [ { path : '/g/data/xp65/file1.nc' } , { path : '/g/data/xp65/file2.nc' } ] ,
420409 } ) ;
421410
422411 // Should still render without errors
0 commit comments