Skip to content

Commit

Permalink
test: mocked function has obviously-mocked return value
Browse files Browse the repository at this point in the history
[#1]
  • Loading branch information
alxndr committed Nov 21, 2024
1 parent 1eaa34e commit 064a406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('handlePayload', () => {
describe(`when payload's show_id matches fetched JSON's data[-1].show_id`, () => {
let mockedPost
beforeEach(() => {
mockedPost = vi.fn()
mockedPost = vi.fn().mockReturnValueOnce({mocked: true})
vi.mocked(login).mockResolvedValue({
...mockedLoginReturnValue,
post: mockedPost,
Expand Down

0 comments on commit 064a406

Please sign in to comment.