Skip to content

Commit 1a8c782

Browse files
committed
test: pass string to fit
1 parent 240ce67 commit 1a8c782

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

playground/providers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,7 @@ export const providers: Provider[] = [
325325
src: '4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg',
326326
width: 250,
327327
height: 200,
328-
fit: {
329-
cover: true
330-
}
328+
fit: 'cover'
331329
}
332330
]
333331
},

test/e2e/__snapshots__/no-ssr.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ exports[`browser (ssr: false) > prepr should render images 1`] = `
251251
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_250/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
252252
"https://nuxt-prepr-demo.stream.prepr.io/c_southeast,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
253253
"https://nuxt-prepr-demo.stream.prepr.io/c_centre,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
254-
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_[object Object]/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
254+
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_crop/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
255255
]
256256
`;
257257

@@ -264,7 +264,7 @@ exports[`browser (ssr: false) > prepr should render images 2`] = `
264264
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_250/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
265265
"https://nuxt-prepr-demo.stream.prepr.io/c_southeast,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
266266
"https://nuxt-prepr-demo.stream.prepr.io/c_centre,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
267-
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_[object%20Object]/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
267+
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_crop/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
268268
]
269269
`;
270270

test/e2e/__snapshots__/ssr.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ exports[`browser (ssr: true) > prepr should render images 1`] = `
251251
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_250/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
252252
"https://nuxt-prepr-demo.stream.prepr.io/c_southeast,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
253253
"https://nuxt-prepr-demo.stream.prepr.io/c_centre,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
254-
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_[object Object]/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
254+
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_crop/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
255255
]
256256
`;
257257

@@ -264,7 +264,7 @@ exports[`browser (ssr: true) > prepr should render images 2`] = `
264264
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_250/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
265265
"https://nuxt-prepr-demo.stream.prepr.io/c_southeast,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
266266
"https://nuxt-prepr-demo.stream.prepr.io/c_centre,w_250,h_200/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
267-
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_[object%20Object]/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
267+
"https://nuxt-prepr-demo.stream.prepr.io/w_250,h_200,fit_crop/4rhkcc7xzk7d-claymemoirscom-spider-pic.jpg",
268268
]
269269
`;
270270

0 commit comments

Comments
 (0)