about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/index.test.js12
1 files changed, 12 insertions, 0 deletions
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())
+)