mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 23:24:29 +03:00
cc6b257470
* Move automated api tests to api directory * First pass at automated browser testing
13 lines
321 B
JavaScript
13 lines
321 B
JavaScript
var request = require('supertest');
|
|
request = request('http://127.0.0.1:8080');
|
|
|
|
|
|
|
|
test('correct number of log entries exist', (done) => {
|
|
request.get('/api/admin/logs').auth('admin', 'abc123').expect(200)
|
|
.then((res) => {
|
|
// expect(res.body).toHaveLength(8);
|
|
done();
|
|
});
|
|
});
|
|
|