tests(api): bring in await format tests

This commit is contained in:
Blade Barringer
2016-01-12 18:10:10 -06:00
parent f80f41f764
commit c9d378ab35
20 changed files with 645 additions and 798 deletions

View File

@@ -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.',