From 3bda5fcfb7a23619ba66bef029d89bbd18d2c915 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 18 Jun 2017 09:27:11 +0200 Subject: Move tests to test/ --- test/index.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/index.test.js (limited to 'test') diff --git a/test/index.test.js b/test/index.test.js new file mode 100644 index 0000000..2e55b2c --- /dev/null +++ b/test/index.test.js @@ -0,0 +1,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()) +) -- cgit 1.4.1