Skip to content

Commit e53f85b

Browse files
committed
BAU: Fix imports for test file
- The tests weren't able to run locally without the imports despite running successfully in GHA - Also deleted unnecessary res.locals.strategicAppChannel assignment
1 parent dfaf3cc commit e53f85b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/handlers/tests/internal-server-error-handler.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { expect } from "chai";
2+
import { describe } from "mocha";
23
import type { NextFunction, Request, Response } from "express";
3-
import sinon from "sinon";
4+
import { sinon } from "../../../test/utils/test-utils.js";
45
import { ERROR_MESSAGES, HTTP_STATUS_CODES } from "../../app.constants.js";
56
import { serverErrorHandler } from "../internal-server-error-handler.js";
67
describe("serverErrorHandler", () => {
@@ -17,9 +18,6 @@ describe("serverErrorHandler", () => {
1718
status: function (newStatus: number) {
1819
this.statusCode = newStatus;
1920
},
20-
locals: {
21-
strategicAppChannel: false,
22-
},
2321
} as unknown as Response;
2422
next = sinon.spy();
2523
});

0 commit comments

Comments
 (0)