Skip to content

Commit

Permalink
Dev: Add test for /
Browse files Browse the repository at this point in the history
  • Loading branch information
RaeesBhatti committed May 6, 2020
1 parent 82dcc71 commit b2cc71d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ test.before(async t => {
})
})

test('netlify dev: /', async t => {
const response = await fetch(`http://${host}:${port}/`).then(r => r.text())

t.regex(response, /⊂◉‿◉つ/)
})

test('netlify dev functions timeout', async t => {
const response = await fetch(`http://${host}:${port}/.netlify/functions/timeout`).then(r => r.text())

Expand Down

0 comments on commit b2cc71d

Please sign in to comment.