diff --git a/packages/core/test/specs/data_sources/index.ts b/packages/core/test/specs/data_sources/index.ts index 06fe514bc..178a545e6 100644 --- a/packages/core/test/specs/data_sources/index.ts +++ b/packages/core/test/specs/data_sources/index.ts @@ -57,11 +57,12 @@ describe('DataSourceManager', () => { test('getValue', () => { const ds = addDataSource(); const testPath = ds.getRecord('id2')?.getPath('name') || ''; - expect(dsm.getValue(`${ds.id}.id1.name`)).toBe('Name1'); expect(dsm.getValue(testPath)).toBe('Name2'); - expect(dsm.getValue(`${ds.id}.non-existing.name`)).toBeUndefined(); - expect(dsm.getValue(`${ds.id}.non-existing.name`, 'Default name')).toBe('Default name'); - expect(dsm.getValue(`${ds.id}.id1.nonExisting`)).toBeUndefined(); + expect(dsm.getValue(`ds1.id1.name`)).toBe('Name1'); + expect(dsm.getValue(`ds1[id1]name`)).toBe('Name1'); + expect(dsm.getValue(`ds1.non-existing.name`)).toBeUndefined(); + expect(dsm.getValue(`ds1.non-existing.name`, 'Default name')).toBe('Default name'); + expect(dsm.getValue(`ds1.id1.nonExisting`)).toBeUndefined(); expect(dsm.getValue('non-existing-ds.id1.name')).toBeUndefined(); }); });