Browse Source

Format

collection-component
mohamedsalem401 2 years ago
parent
commit
39d6de8413
  1. 8
      packages/core/test/specs/data_sources/model/data_collection/ComponentDataCollection.ts

8
packages/core/test/specs/data_sources/model/data_collection/ComponentDataCollection.ts

@ -201,15 +201,15 @@ describe('Collection component', () => {
const updatedFirstChild = cmp.components().at(0); const updatedFirstChild = cmp.components().at(0);
const updatedSecondChild = cmp.components().at(1); const updatedSecondChild = cmp.components().at(1);
expect(updatedFirstChild.get('name')).toBe("user2"); expect(updatedFirstChild.get('name')).toBe('user2');
expect(updatedSecondChild.get('name')).toBe("user3"); expect(updatedSecondChild.get('name')).toBe('user3');
// Verify that the grandchild components are also updated // Verify that the grandchild components are also updated
const updatedFirstGrandchild = updatedFirstChild.components().at(0); const updatedFirstGrandchild = updatedFirstChild.components().at(0);
const updatedSecondGrandchild = updatedSecondChild.components().at(0); const updatedSecondGrandchild = updatedSecondChild.components().at(0);
expect(updatedFirstGrandchild.get('name')).toBe("user2"); expect(updatedFirstGrandchild.get('name')).toBe('user2');
expect(updatedSecondGrandchild.get('name')).toBe("user3"); expect(updatedSecondGrandchild.get('name')).toBe('user3');
}); });
test('Adding a record updates the collection component correctly', () => { test('Adding a record updates the collection component correctly', () => {

Loading…
Cancel
Save