all repos — archive/homestead @ 3bda5fcfb7a23619ba66bef029d89bbd18d2c915

My future indieweb platform

test/index.test.js (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
const test = require('ava')
const request = require('supertest')

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

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