diff options
author | Alan Pearce | 2017-06-18 09:27:11 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-18 09:27:11 +0200 |
commit | 3bda5fcfb7a23619ba66bef029d89bbd18d2c915 (patch) | |
tree | 7682f34d6f425592abb1e6d9e124846772bf0f85 /test | |
parent | 553a9f2f376a9d489e9096386ffec5b7732aa5e3 (diff) | |
download | homestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.tar.lz homestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.tar.zst homestead-3bda5fcfb7a23619ba66bef029d89bbd18d2c915.zip |
Move tests to test/
Diffstat (limited to 'test')
-rw-r--r-- | test/index.test.js | 12 |
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()) +) |