mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-27 13:40:00 +00:00
17 lines
354 B
JavaScript
17 lines
354 B
JavaScript
|
|
import {
|
||
|
|
requester,
|
||
|
|
} from '../../../../helpers/api-v3-integration.helper';
|
||
|
|
|
||
|
|
describe('GET /news', () => {
|
||
|
|
let api;
|
||
|
|
|
||
|
|
beforeEach(async () => {
|
||
|
|
api = requester();
|
||
|
|
});
|
||
|
|
|
||
|
|
it('returns the latest news in html format, does not require authentication', async () => {
|
||
|
|
const res = await api.get('/news');
|
||
|
|
expect(res).to.be.a.string;
|
||
|
|
});
|
||
|
|
});
|