Browse Source

Update dynamic attributes tests

pull/6351/head
mohamedsalem401 2 years ago
parent
commit
45873fc187
  1. 8
      packages/core/test/specs/data_sources/dynamic_values/attributes.ts

8
packages/core/test/specs/data_sources/dynamic_values/attributes.ts

@ -79,7 +79,7 @@ describe('TraitDataVariable', () => {
id: 'ds_id', id: 'ds_id',
records: [ records: [
{ id: 'id1', value: 'test-value' }, { id: 'id1', value: 'test-value' },
{ id: 'id2', value: 'test-value' }, { id: 'id2', value: 'test-value2' },
], ],
}; };
dsm.add(dataSource); dsm.add(dataSource);
@ -105,7 +105,7 @@ describe('TraitDataVariable', () => {
}, },
}); });
changeDataSourceValue(dsm); changeDataSourceValue(dsm);
testAttribute(cmp, 'dynamicAttribute', 'test-value'); testAttribute(cmp, 'dynamicAttribute', 'test-value2');
}); });
test('(Component.addAttributes) dynamic attributes should listen to the latest dynamic value', () => { test('(Component.addAttributes) dynamic attributes should listen to the latest dynamic value', () => {
@ -113,7 +113,7 @@ describe('TraitDataVariable', () => {
id: 'ds_id', id: 'ds_id',
records: [ records: [
{ id: 'id1', value: 'test-value' }, { id: 'id1', value: 'test-value' },
{ id: 'id2', value: 'test-value' }, { id: 'id2', value: 'test-value2' },
], ],
}; };
dsm.add(dataSource); dsm.add(dataSource);
@ -139,7 +139,7 @@ describe('TraitDataVariable', () => {
}, },
}); });
changeDataSourceValue(dsm); changeDataSourceValue(dsm);
testAttribute(cmp, 'dynamicAttribute', 'test-value'); testAttribute(cmp, 'dynamicAttribute', 'test-value2');
}); });
test('dynamic attributes should stop listening to change if the value changed to static', () => { test('dynamic attributes should stop listening to change if the value changed to static', () => {

Loading…
Cancel
Save