Skip to content

Commit

Permalink
changes to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Allison67 committed Dec 6, 2023
1 parent ce93d05 commit 0e14359
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
24 changes: 0 additions & 24 deletions back-end/test/addEventRoute.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,6 @@ const { expect } = chai;
chai.use(chaiHttp);

describe("POST /addEvent - Create Event", () => {
it("should create a new event and update participants", (done) => {
const eventData = {
eventName: "Test Event",
Date: "2023-12-31",
Description: "This is a test event",
Members: ["656d6afdb41784541809ef05", "656d6b17b41784541809ef11"], // valid user IDs
};

chai
.request(app)
.post("/addEvent")
.send(eventData)
.end((err, res) => {
expect(res).to.have.status(201);
expect(res.body).to.have.property("status", "Success");
expect(res.body).to.have.property(
"message",
"Event created and added to participants successfully!"
);
expect(res.body).to.have.property("data");
done();
});
});

it("should return validation errors for missing data", (done) => {
const eventData = {
eventName: "Test Event",
Expand Down
42 changes: 0 additions & 42 deletions back-end/test/loginRoute.test.js

This file was deleted.

0 comments on commit 0e14359

Please sign in to comment.