Browse Source

Fix getComponentDef test

pull/6419/head
mohamedsalem401 2 years ago
parent
commit
9aae95c88b
  1. 3
      packages/core/test/specs/data_sources/model/data_collection/ComponentDataCollection.getters-setters.ts

3
packages/core/test/specs/data_sources/model/data_collection/ComponentDataCollection.getters-setters.ts

@ -92,12 +92,11 @@ describe('Collection component getters and setters', () => {
const componentDef = cmp.getComponentDef();
expect(componentDef.type).toBe('default');
expect(componentDef.components).toHaveLength(1);
expect(componentDef.attributes?.['dataUser']).toEqual({
expect(componentDef?.components?.[0].attributes?.['dataUser']).toEqual({
type: DataCollectionVariableType,
variableType: DataCollectionStateVariableType.currentItem,
collectionId: 'my_collection',
path: 'user',
});
});

Loading…
Cancel
Save