diff --git a/packages/devextreme/js/renovation/utils/__tests__/getThemeType.test.ts b/packages/devextreme/js/renovation/utils/__tests__/getThemeType.test.ts index 49a535818bf6..a8d246b524e5 100644 --- a/packages/devextreme/js/renovation/utils/__tests__/getThemeType.test.ts +++ b/packages/devextreme/js/renovation/utils/__tests__/getThemeType.test.ts @@ -1,8 +1,11 @@ import getThemeType from '../getThemeType'; -import { isMaterial, isCompact, current } from '../../../ui/themes'; +import { + isFluent, isMaterial, isCompact, current, +} from '../../../ui/themes'; jest.mock('../../../ui/themes', () => ({ current: jest.fn(() => 'test_current'), + isFluent: jest.fn(() => 'test_isFluent'), isMaterial: jest.fn(() => 'test_isMaterial'), isCompact: jest.fn(() => 'test_isCompact'), })); @@ -13,8 +16,12 @@ describe('getThemeType', () => { .toEqual({ isCompact: 'test_isCompact', isMaterial: 'test_isMaterial', + isFluent: 'test_isFluent', }); + expect(isFluent) + .toBeCalledWith('test_current'); + expect(isMaterial) .toBeCalledWith('test_current');