Skip to content

Commit acc436d

Browse files
fixed bot comments
1 parent c5f4d4a commit acc436d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/impersonationRequests.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ describe("Impersonation Requests", () => {
646646
.send({status:"APPROVED"})
647647
.set("cookie", `${cookieName}=${authToken}`)
648648
.end(function (err, res) {
649+
if (err) return done(err);
649650
try {
650651
expect(res.statusCode).to.equal(404);
651652
expect(res.body.message).to.equal("Route not found");
@@ -755,7 +756,7 @@ describe("Impersonation Requests", () => {
755756
});
756757
});
757758

758-
it("should throw 403 Forbidden if unauthorized user tries to update the request", function (done) {
759+
it("should throw 403 Forbidden if unauthorized user tries to update the request", function (done) {
759760
chai
760761
.request(app)
761762
.patch(`/impersonation/requests/${impersonationRequest3.id}?dev=true`)

0 commit comments

Comments
 (0)