Skip to content

Commit 042262e

Browse files
committed
add nested entities to normalized caching
1 parent a87d5e0 commit 042262e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/data-connect/test/unit/Cache.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ describe('Normalized Cache Tests', () => {
325325
// 3. Check that stubs are distinct objects from BDOs
326326
const movieBdo = cache.bdoCache.get(Cache.makeBdoCacheKey('Movie', '1'))!;
327327
expect(movieStub).to.not.equal(movieBdo);
328-
expect(movieStub.backingData).to.equal(movieBdo);
328+
expect({...movieStub}).to.equal({...movieBdo});
329329
});
330330

331331
it('should propagate changes from a nested entity to all parent listeners', () => {

0 commit comments

Comments
 (0)