Skip to content

Commit d630cac

Browse files
authored
Add query client to tests (#11903)
1 parent c69ec7e commit d630cac

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

packages/web/src/common/store/upload/sagas.test.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ describe('upload', () => {
111111
[select(accountSelectors.getAccountUser), {}],
112112
[select(accountSelectors.getUserId), 12345],
113113
[call.fn(uploadMultipleTracks), undefined],
114-
[call.fn(addPremiumMetadata), testTrack]
114+
[call.fn(addPremiumMetadata), testTrack],
115+
[
116+
getContext('queryClient'),
117+
{
118+
invalidateQueries: () => {}
119+
}
120+
]
115121
])
116122
// Assertions
117123
// Assert that we format the tracks for premium conditions
@@ -169,6 +175,12 @@ describe('upload', () => {
169175
}
170176
}
171177
],
178+
[
179+
getContext('queryClient'),
180+
{
181+
invalidateQueries: () => {}
182+
}
183+
],
172184
[call.fn(confirmTransaction), true],
173185
[call.fn(waitForAccount), undefined],
174186
[call.fn(retrieveTracks), [testTrack.metadata]]
@@ -266,6 +278,12 @@ describe('upload', () => {
266278
}
267279
}
268280
],
281+
[
282+
getContext('queryClient'),
283+
{
284+
invalidateQueries: () => {}
285+
}
286+
],
269287
[call.fn(confirmTransaction), true],
270288
[call.fn(waitForAccount), undefined],
271289
[call.fn(retrieveTracks), [testTrack.metadata]],
@@ -651,6 +669,12 @@ describe('upload', () => {
651669
[select(accountSelectors.getAccountUser), {}],
652670
[select(accountSelectors.getUserId), 12345],
653671
[getContext('audiusSdk'), () => sdkMock],
672+
[
673+
getContext('queryClient'),
674+
{
675+
invalidateQueries: () => {}
676+
}
677+
],
654678
[call.fn(confirmTransaction), true],
655679
[call.fn(waitForAccount), undefined],
656680
[

0 commit comments

Comments
 (0)