From 413d47d49e85d9c1e6db358995a58b25152a650a Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 23 Oct 2025 13:19:04 +0400 Subject: [PATCH] Up test --- packages/core/test/specs/data_sources/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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(); }); });