mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 19:48:24 +00:00
14 lines
387 B
JavaScript
14 lines
387 B
JavaScript
|
|
import { requester } from '../../../helpers/api-integration/v3';
|
||
|
|
|
||
|
|
describe('notFound Middleware', () => {
|
||
|
|
it('returns a 404 error when the resource is not found', async () => {
|
||
|
|
let request = requester().get('/api/v3/dummy-url');
|
||
|
|
|
||
|
|
await expect(request).to.eventually.be.rejected.and.eql({
|
||
|
|
code: 404,
|
||
|
|
error: 'NotFound',
|
||
|
|
message: 'Not found.',
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|