Skip to content

Commit 876d89f

Browse files
authored
fix: return back versionAssertions to the global config (DevExpress#31189)
1 parent fad6812 commit 876d89f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

e2e/testcafe-devextreme/tests/common/shadowDOM.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fixture.disablePageReloads`Shadow DOM - Adopted DX css styles`
77
const dxWidgetHostStyles = '.dx-widget-shadow { font-size: 20px; }';
88
const dxWidgetShadowStyles = '.dx-widget-shadow { font-size: 40px; }';
99

10-
const setupShadowDOMTest = (copyStylesToShadowDom) => ClientFunction((copyStyles) => {
10+
const setupShadowDomTest = (copyStylesToShadowDom) => ClientFunction((copyStyles) => {
1111
if (!copyStyles) {
1212
(window as any).DevExpress.config({ copyStylesToShadowDom: copyStyles });
1313
}
@@ -64,7 +64,7 @@ const getAdoptedStyleSheets = ClientFunction(() => {
6464
});
6565

6666
test('Copies DX css styles from the host to the shadow root when rendering a DX widget', async (t) => {
67-
await setupShadowDOMTest(true);
67+
await setupShadowDomTest(true);
6868

6969
const { firstSheetRules, secondSheetRules } = await getAdoptedStyleSheets();
7070

@@ -76,7 +76,7 @@ test('Copies DX css styles from the host to the shadow root when rendering a DX
7676
});
7777

7878
test('Does not copy DX css styles when copyStylesToShadowDom is disabled', async (t) => {
79-
await setupShadowDOMTest(false);
79+
await setupShadowDomTest(false);
8080

8181
const { firstSheetRules, secondSheetRules } = await getAdoptedStyleSheets();
8282
await t.expect(firstSheetRules === null && secondSheetRules === null)

packages/devextreme/js/__internal/core/m_config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const config = {
1717
useJQuery: undefined,
1818
editorStylingMode: undefined,
1919
useLegacyVisibleIndex: false,
20+
versionAssertions: [],
2021
copyStylesToShadowDom: true,
2122

2223
floatingActionButtonConfig: {

packages/devextreme/testing/tests/DevExpress.core/utils.shadow_dom.tests.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import $ from 'jquery';
12
import { computeStyleSheetsHash, addShadowDomStyles } from '__internal/core/utils/m_shadow_dom';
23

34
QUnit.module('computeStyleSheetsHash', () => {
@@ -36,6 +37,7 @@ QUnit.module('addShadowDomStyles', () => {
3637

3738
const div = document.createElement('div');
3839
shadow.appendChild(div);
40+
3941
const $div = $(div);
4042

4143
addShadowDomStyles($div);

0 commit comments

Comments
 (0)