Make it possible to cancel a mock local query

We're going to add tests to check that we cancel a remote query.

We'll need a `.cancel` method to be present on our mock local queries for this.
This commit is contained in:
Elena Tanasoiu
2022-11-04 13:08:46 +00:00
parent 620cc39e63
commit 20b127c693

View File

@@ -47,6 +47,7 @@ export function createMockLocalQueryInfo({
const localQuery = new LocalQueryInfo(initialQueryInfo, cancellationToken);
localQuery.failureReason = failureReason;
localQuery.cancel = () => { /**/ };
if (queryWithResults) {
localQuery.completeThisQuery(queryWithResults);