mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
tests(api): bring in await format tests
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { requester } from '../../../helpers/api-integration.helper';
|
||||
|
||||
describe('notFound Middleware', () => {
|
||||
it('returns a 404 error when the resource is not found', () => {
|
||||
it('returns a 404 error when the resource is not found', async () => {
|
||||
let request = requester().get('/api/v3/dummy-url');
|
||||
|
||||
return expect(request).to.eventually.be.rejected.and.eql({
|
||||
await expect(request).to.eventually.be.rejected.and.eql({
|
||||
code: 404,
|
||||
error: 'NotFound',
|
||||
message: 'Not found.',
|
||||
|
||||
Reference in New Issue
Block a user