mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-31 02:10:16 -06:00
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
|
describe('API', () => {
|
||
|
it('returns HTTP 404 to unknown API endpoint paths', () => {
|
||
|
cy.request({
|
||
|
url: '/api/foo',
|
||
|
failOnStatusCode: false,
|
||
|
}).then((response) => {
|
||
|
expect(response.status).to.eq(404);
|
||
|
expect(response.body.error.code).to.eq('UNKNOWN_API_ENDPOINT');
|
||
|
});
|
||
|
});
|
||
|
});
|