Skip to content

Commit

Permalink
fix: update recently added test
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 12, 2022
1 parent fa03d8c commit f47f642
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions playground/assets/__tests__/assets.spec.ts
@@ -1,3 +1,4 @@
import path from 'node:path'
import fetch from 'node-fetch'
import { describe, expect, test } from 'vitest'
import {
Expand Down Expand Up @@ -30,8 +31,12 @@ test('should have no 404s', () => {
})

test('should get a 404 when using incorrect case', async () => {
expect((await fetch(viteTestUrl + 'icon.png')).status).toBe(200)
expect((await fetch(viteTestUrl + 'ICON.png')).status).toBe(404)
expect((await fetch(path.posix.join(viteTestUrl, 'icon.png'))).status).toBe(
200
)
expect((await fetch(path.posix.join(viteTestUrl, 'ICON.png'))).status).toBe(
404
)
})

describe('injected scripts', () => {
Expand Down

0 comments on commit f47f642

Please sign in to comment.