mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
lint: Fix tests that can be fixed with the eslint --fix flag
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user