From eaddf5a393c1a14e415fe2cac4a0d21fcb96ead3 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 12 Jan 2016 18:59:53 +0200 Subject: [PATCH] Refactor notFound test to use await expect syntax --- test/api/v3/integration/notFound.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/api/v3/integration/notFound.test.js b/test/api/v3/integration/notFound.test.js index e86b6b35e8..6539a0037d 100644 --- a/test/api/v3/integration/notFound.test.js +++ b/test/api/v3/integration/notFound.test.js @@ -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.',