Skip to content

Commit

Permalink
Core: fix desktopTooltip test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Oct 15, 2024
1 parent b5534bd commit 1dd59f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { touch } from '@js/core/utils/support';
import supportUtils from '@ts/core/utils/m_support';
import Tooltip from '@ts/ui/m_tooltip';

import { TooltipStrategyBase } from './m_tooltip_strategy_base';
Expand Down Expand Up @@ -35,7 +35,7 @@ export class DesktopTooltipStrategy extends TooltipStrategyBase {
const result: any = super._createListOption(target, dataList);
// TODO:T724287 this condition is not covered by tests, because touch variable cannot be overridden.
// In the future, it is necessary to cover the tests
result.showScrollbar = touch ? 'always' : 'onHover';
result.showScrollbar = supportUtils.touch ? 'always' : 'onHover';
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { extend } from 'core/utils/extend';
import Tooltip from 'ui/tooltip';
import List from '__internal/ui/list/m_list.edit';
import Button from 'ui/button';
import support from 'core/utils/support';
import support from '__internal/core/utils/m_support';

const stubComponent = {
option: sinon.stub().returns('stubOption'),
Expand Down

0 comments on commit 1dd59f6

Please sign in to comment.