mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 23:32:51 +03:00
11 lines
271 B
JavaScript
11 lines
271 B
JavaScript
|
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();
|
||
|
});
|
||
|
});
|