0
owncast/test/automated/api/001_index.test.js
Gabe Kangas 04b1b30b7d
Update API tests (#3894)
* fix(test): remove done callback in tests

* fix(test): expect correct status code

* fix(test): remove logging of var
2024-08-21 14:44:09 -07:00

12 lines
229 B
JavaScript

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