Skip to content

Commit

Permalink
add back assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Oct 14, 2022
1 parent 804a1f6 commit 11f9f15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions exchanges/graphcache/src/offlineExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Operation,
OperationResult,
} from '@urql/core';
import { print } from 'graphql';

import { pipe, map, makeSubject, tap, publish } from 'wonka';
import { offlineExchange } from './offlineExchange';
Expand Down Expand Up @@ -290,5 +291,16 @@ describe('offline', () => {
flush!();
expect(reexecuteOperation).toHaveBeenCalledTimes(1);
expect((reexecuteOperation.mock.calls[0][0] as any).key).toEqual(1);
expect(print((reexecuteOperation.mock.calls[0][0] as any).query)).toEqual(
print(gql`
mutation {
updateAuthor {
id
name
__typename
}
}
`)
);
});
});

0 comments on commit 11f9f15

Please sign in to comment.