Skip to content

Commit

Permalink
test: Upsert Friendship tests tiny refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet committed Jan 13, 2025
1 parent 855f8eb commit 0a28f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
beforeEach(() => {
afterEach(() => {
jest.clearAllMocks()
})
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('upsertFriendshipService', () => {
})

it('should return an internalServerError for an invalid request', async () => {
jest.spyOn(FriendshipsLogic, 'parseUpsertFriendshipRequest').mockReturnValueOnce(undefined)
jest.spyOn(FriendshipsLogic, 'parseUpsertFriendshipRequest').mockReturnValueOnce(null)

const result: UpsertFriendshipResponse = await upsertFriendship(mockRequest, rpcContext)

Expand Down

0 comments on commit 0a28f16

Please sign in to comment.