Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test cases for activity feed backend #1976

Merged
merged 17 commits into from
Mar 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
issue-700-backend: test case fixed
  • Loading branch information
palakgupta2712 committed Mar 18, 2024
commit 7560710943632da89003c38ec1bc35941c25eda1
3 changes: 2 additions & 1 deletion test/unit/models/logs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const addUser = require("../../utils/addUser");
const cookieName = config.get("userToken.cookieName");
const authService = require("../../../services/authService");
const { extensionRequestLogs } = require("../../fixtures/logs/extensionRequests");
const { LOGS_FETCHED_SUCCESSFULLY } = require("../../../constants/logs");
chai.use(chaiHttp);
const superUser = userData[4];
const userToBeMadeMember = userData[1];
Expand Down Expand Up @@ -154,7 +155,7 @@ describe("Logs", function () {

const logs = response.body.logs;

expect(response.body.message).to.equal("Logs returned successfully!");
expect(response.body.message).to.equal(LOGS_FETCHED_SUCCESSFULLY);
expect(logs).to.be.a("array").length(4);

// Checking new fields that must be present in APPROVED Log
Expand Down
Loading