Skip to content

Commit 68d5aad

Browse files
committed
add passing test for RELEASES 404
1 parent 7a223d4 commit 68d5aad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test('Updates', async t => {
8484
t.ok(body.name)
8585

8686
await t.test('RELEASES', async t => {
87-
const res = await fetch(
87+
let res = await fetch(
8888
`${address}/zeit/hyper/win32/0.0.0/RELEASES?some-extra`
8989
)
9090
t.equal(res.status, 200)
@@ -93,6 +93,11 @@ test('Updates', async t => {
9393
body,
9494
/^[^ ]+ https:\/\/github.com\/zeit\/hyper\/releases\/download\/[^/]+\/hyper-[^-]+-full.nupkg [^ ]+$/
9595
)
96+
97+
res = await fetch(
98+
`${address}/juliangruber/brace-expansion/win32/0.0.0/RELEASES`
99+
)
100+
t.equal(res.status, 404)
96101
})
97102
})
98103
})

0 commit comments

Comments
 (0)