summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2017-06-18 09:27:11 +0200
committerAlan Pearce2017-06-18 09:27:11 +0200
commit3bda5fcfb7a23619ba66bef029d89bbd18d2c915 (patch)
tree7682f34d6f425592abb1e6d9e124846772bf0f85 /test
parent553a9f2f376a9d489e9096386ffec5b7732aa5e3 (diff)
downloadhomestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.tar.lz
homestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.tar.zst
homestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.zip
Move tests to test/
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())
+)