Skip to content

Instantly share code, notes, and snippets.

@ryanblock
Created November 14, 2018 03:17
Show Gist options
  • Save ryanblock/c799ce26e80495030e42485addebbc6a to your computer and use it in GitHub Desktop.
Save ryanblock/c799ce26e80495030e42485addebbc6a to your computer and use it in GitHub Desktop.
test('can get /', async t=> {
t.plan(1)
let url = 'http://localhost:3333'
let result = await tiny.get({url})
t.ok(result.body, 'got a 200 response')
console.log(result.body)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment