lint: Fix tests that can be fixed with the eslint --fix flag

This commit is contained in:
Blade Barringer
2015-12-30 21:16:26 -06:00
parent 6f220c6869
commit 70151fd073
14 changed files with 41 additions and 41 deletions

View File

@@ -3,9 +3,9 @@ import {
generateReq,
generateNext,
} from '../../../../helpers/api-unit.helper';
import responseMiddleware from '../../../../../website/src/middlewares/api-v3/response'
import responseMiddleware from '../../../../../website/src/middlewares/api-v3/response';
describe('response middleware', function() {
describe('response middleware', function () {
let res, req, next;
beforeEach(() => {
@@ -15,13 +15,13 @@ describe('response middleware', function() {
});
it('attaches respond method to res', function() {
it('attaches respond method to res', function () {
responseMiddleware(req, res, next);
expect(res.respond).to.exist;
});
it('can be used to respond to requests', function() {
it('can be used to respond to requests', function () {
responseMiddleware(req, res, next);
res.respond(200, {field: 1});
@@ -34,7 +34,7 @@ describe('response middleware', function() {
});
});
it('treats status >= 400 as failures', function() {
it('treats status >= 400 as failures', function () {
responseMiddleware(req, res, next);
res.respond(403, {field: 1});