Skip to content

Commit a46f685

Browse files
fixed test descriptions
1 parent 141d58a commit a46f685

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/impersonationRequests.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,15 +374,15 @@ describe("Impersonation Requests", () => {
374374
});
375375
});
376376

377-
it("should return 204 with empty response body when no data found", function (done) {
377+
it("should return 204 with no response body when no data found", function (done) {
378378
chai
379379
.request(app)
380380
.get(`${requestsEndpoint}&createdBy=testUserRandom`)
381381
.set("cookie", `${cookieName}=${authToken}`)
382382
.end(function (err, res) {
383383
if (err) return done(err);
384384
expect(res).to.have.status(204);
385-
expect(res.body).to.deep.equal({});
385+
expect(res.body).to.deep.equal(null);
386386
done();
387387
});
388388
});
@@ -553,7 +553,7 @@ describe("Impersonation Requests", () => {
553553
});
554554
});
555555

556-
it("should return 404 and 'Route not found' message when route is not found", function (done) {
556+
it("should return 404 and 'Route not found' message when request ID is not found", function (done) {
557557
chai
558558
.request(app)
559559
.get(`/impersonation/requests/randomId?dev=true`)

0 commit comments

Comments
 (0)