Skip to content

Commit

Permalink
fixed nps
Browse files Browse the repository at this point in the history
  • Loading branch information
npunati27 committed Oct 31, 2023
1 parent 4a66044 commit cf63b59
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ dist
# Auto-generated HTML files
docs/
apidocs/
devdocs/
devdocs/
1 change: 0 additions & 1 deletion src/services/admission/admission-formats.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { DecisionStatus } from "database/decision-db.js";

export interface ApplicantDecisionFormat {
_id?: string;
userId: string;
status: DecisionStatus;
}
2 changes: 1 addition & 1 deletion src/services/admission/admission-router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe("GET /admission", () => {
});

describe("PUT /admission", () => {
it("gives forbidden error for user without elevated perms (As Attendee)", async () => {
it("gives forbidden error for user without elevated perms", async () => {
const responseUser = await putAsUser("/admission/").send(updateData).expect(StatusCode.ClientErrorForbidden);
expect(JSON.parse(responseUser.text)).toHaveProperty("error", "Forbidden");
});
Expand Down
3 changes: 0 additions & 3 deletions src/services/admission/admission-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,14 @@ admissionRouter.get("/", strongJwtVerification, async (_: Request, res: Response
* [
* {
* "userId": "user1",
* "name": "Jason",
* "status": "ACCEPTED"
* },
* {
* "userId": "user2",
* "name": "Fred",
* "status": "REJECTED"
* },
* {
* "userId": "user3",
* "name": "John",
* "status": "WAITLISTED"
* }
* ]
Expand Down

0 comments on commit cf63b59

Please sign in to comment.