Skip to content

Commit b3bf544

Browse files
committed
fixed create route in faculty.test.js
1 parent 9e15a4d commit b3bf544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/routes/faculty.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ afterAll((done) => {
4141

4242
describe("Faculty API", () => {
4343
it("should create faculty", async () => {
44-
const response = await agent.post("/faculty/add").send({
44+
const response = await agent.post("/faculty/create").send({
4545
ERPID: "test123",
4646
dateOfJoining: "2023-06-18T14:11:30Z",
4747
dateOfLeaving: "2023-07-18T14:11:30Z",
@@ -66,7 +66,7 @@ describe("Faculty API", () => {
6666
describe("after adding faculty", () => {
6767
let id;
6868
beforeEach(async () => {
69-
id = await agent.post("/faculty/add").send(
69+
id = await agent.post("/faculty/create").send(
7070
{
7171
ERPID: "test123",
7272
dateOfJoining: "2023-06-18T14:11:30Z",

0 commit comments

Comments
 (0)