summary refs log tree commit diff stats
path: root/src/index.test.js
blob: 2c11d6520a729f9149ee60b381e24a627bc04728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const test = require('ava')
const request = require('supertest')

const app = require('./index.js')

test(t =>
  request(app.listen())
    .get('/')
    .expect(200)
    .expect(/hello world/)
    .then(() => t.pass())
)