Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions packages/solid-query/src/__tests__/mutationOptions.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ describe('mutationOptions', () => {
mutationFn: () => sleep(10).then(() => 5),
} as const

expect(mutationOptions(object)).toStrictEqual(object)
expect(mutationOptions(object)).toBe(object)
})

it('should return the object received as a parameter without any modification (without mutationKey in mutationOptions)', () => {
const object = {
mutationFn: () => sleep(10).then(() => 5),
} as const

expect(mutationOptions(object)).toStrictEqual(object)
expect(mutationOptions(object)).toBe(object)
})

it('should return the number of fetching mutations when used with useIsMutating (with mutationKey in mutationOptions)', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ describe('mutationOptions', () => {
mutationFn: () => sleep(10).then(() => 5),
} as const

expect(mutationOptions(object)).toStrictEqual(object)
expect(mutationOptions(object)).toBe(object)
})

it('should return the object received as a parameter without any modification (without mutationKey in mutationOptions)', () => {
const object = {
mutationFn: () => sleep(10).then(() => 5),
} as const

expect(mutationOptions(object)).toStrictEqual(object)
expect(mutationOptions(object)).toBe(object)
})

it('should return the number of fetching mutations when used with useIsMutating (with mutationKey in mutationOptions)', async () => {
Expand Down
Loading