Skip to content

Commit

Permalink
pr comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
aletya committed Oct 24, 2023
1 parent 0368699 commit 73e88a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/services/rsvp/rsvp-router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const TESTER_DECISION_INFO = {
userId: TESTER.id,
status: DecisionStatus.ACCEPTED,
response: DecisionResponse.PENDING,
}
};

beforeEach(async () => {
Models.initialize();
await Models.DecisionInfo.create( TESTER_DECISION_INFO );
await Models.DecisionInfo.create(TESTER_DECISION_INFO);
});

describe("GET /rsvp", () => {
Expand All @@ -30,7 +30,6 @@ describe("GET /rsvp", () => {

expect(JSON.parse(response.text)).toHaveProperty("userId", TESTER.id);
});

});

describe("GET /rsvp/:USERID", () => {
Expand Down Expand Up @@ -64,7 +63,7 @@ describe("GET /rsvp/:USERID", () => {

describe("PUT /rsvp", () => {
it("error checking for empty query works", async () => {
const response = await putAsApplicant("/rsvp/").send({ }).expect(400);
const response = await putAsApplicant("/rsvp/").send({}).expect(400);

expect(JSON.parse(response.text)).toHaveProperty("error", "InvalidParams");
});
Expand Down
1 change: 0 additions & 1 deletion src/services/rsvp/rsvp-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Models from "../../database/models.js";

const rsvpRouter: Router = Router();


/**
* @api {get} /rsvp/:USERID/ GET /rsvp/:USERID/
* @apiGroup rsvp
Expand Down

0 comments on commit 73e88a7

Please sign in to comment.