Skip to content

Commit 699a700

Browse files
committed
Fixed CI tests
1 parent 4737466 commit 699a700

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/data-connect/test/queries.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ describe('DataConnect Tests', async () => {
8989
await terminate(dc);
9090
});
9191
it('Can get all posts', async () => {
92-
expect(dc.isEmulator).to.eq(true);
9392
const taskListQuery = queryRef<PostListResponse>(dc, 'ListPosts');
9493
const taskListRes = await executeQuery(taskListQuery);
9594
expect(taskListRes.data).to.deep.eq({
@@ -144,8 +143,10 @@ describe('DataConnect Tests', async () => {
144143
},
145144
source: SOURCE_CACHE
146145
};
147-
expect(result.toJSON()).to.deep.eq(serializedRef);
148-
expect(result.source).to.deep.eq(SOURCE_CACHE);
146+
const json = result.toJSON();
147+
expect(json.data).to.deep.eq(serializedRef.data);
148+
expect(json.refInfo).to.deep.eq(serializedRef.refInfo);
149+
expect(json.source).to.deep.eq(serializedRef.source);
149150
});
150151
it(`throws an error when the user can't connect to the server`, async () => {
151152
// You can't point an existing data connect instance to a new emulator port, so we have to create a new one

0 commit comments

Comments
 (0)