Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Jan 3, 2025
1 parent 01304db commit 7fdb91c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Page = () => {
<Image alt="q-42" id="q-42" quality={42} src={src} />
<Image alt="q-69" id="q-69" quality={69} src={src} />
<Image alt="q-88" id="q-88" quality={88} src={src} />
<Image alt="q-100" id="q-100" quality={100} src={src} />
</main>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function runTests(mode: 'dev' | 'server') {
const url = await getSrc(browser, 'q-undefined')
const res = await fetchViaHTTP(appPort, url)
expect(res.status).toStrictEqual(200)
expect(url).toContain('&q=69') // default to highest available quality
expect(url).toContain('&q=69') // default to closest to 75
})

it('should load img when quality 42', async () => {
Expand Down

0 comments on commit 7fdb91c

Please sign in to comment.