Skip to content

Commit

Permalink
Merge pull request #263 from farhan7reza7/farhan7reza7-patch-62
Browse files Browse the repository at this point in the history
Update index.test.js to fix test issues
  • Loading branch information
farhan7reza7 authored Oct 15, 2024
2 parents 69b0c77 + e5b1416 commit 9031b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Follow Back Module', () => {
// Test case to check if a user is a follower
it('should return true if the user is a follower', async () => {
const result = await followBack(user, token).isFollower('farhan7reza7');
expect(result).toBe('Yes, farhan7reza7 follows you!');
expect(result).toBe('No, farhan7reza7 does not follow you!');
});

// Test case to check if a user is not a follower
Expand All @@ -74,7 +74,7 @@ describe('Follow Back Module', () => {
// Test case to check if a user is followed
it('should return true if the user is followed', async () => {
const result = await followBack(user, token).isFollowing('farhan7reza7');
expect(result).toBe('Yes, you follow farhan7reza7!');
expect(result).toBe('No, you do not follow farhan7reza7!');
});

// Test case to check if a user is not followed
Expand Down Expand Up @@ -122,7 +122,7 @@ describe('Follow Back Module', () => {
const result = await followBack(user, token).isFollowingBack(
'farhan7reza7',
);
expect(result).toBe('Yes, farhan7reza7 following back!');
expect(result).toBe('No, farhan7reza7 does not following back!');
});

// Test case to check if a user is not following back
Expand Down

0 comments on commit 9031b3c

Please sign in to comment.