Skip to content

Commit

Permalink
remove _id requirement from signin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Sep 25, 2024
1 parent 2394cc5 commit abb62fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/user/signin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ describe('When Email 2FA is not enabled', () => {
}

test('if login works', async () => {
expect.assertions(12);
expect.assertions(11);

await new User(userData).save();

Expand Down Expand Up @@ -343,7 +343,6 @@ describe('When Email 2FA is not enabled', () => {
expect(includesNotIncludedKey).toBe(false);
expect(typeof returned.data.data.followers).toBe("number");
expect(typeof returned.data.data.following).toBe("number");
expect(typeof returned.data.data._id).toBe("string");
//End of test if correct user data gets returned


Expand Down
2 changes: 1 addition & 1 deletion tests/user/signup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ test('if signup fails if a user with the same name already exists', async () =>

for (const validUserEmail of VALID_EMAILS) {
test(`if user account creation is successful with correct inputs. Email tested: ${validUserEmail}`, async () => {
expect.assertions(21);
expect.assertions(20);

const benchmarkUserData = {
name: validName,
Expand Down

0 comments on commit abb62fb

Please sign in to comment.