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