File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/data-connect/test Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments