Automated browser testing (#1415)

* Move automated api tests to api directory

* First pass at automated browser testing
This commit is contained in:
Gabe Kangas
2021-09-17 14:04:09 -07:00
committed by GitHub
parent 5fc8465746
commit cc6b257470
29 changed files with 9094 additions and 25 deletions

View File

@@ -0,0 +1,10 @@
var request = require('supertest');
request = request('http://127.0.0.1:8080');
test('service is online', (done) => {
request.get('/api/status').expect(200)
.then((res) => {
expect(res.body.online).toBe(true);
done();
});
});