Skip to content

Commit 5a6bc3b

Browse files
r-farkhutdinovRuslan Farkhutdinov
andauthored
DropDownEditor: Fix deprecation tests warnings filtering (#31970)
Co-authored-by: Ruslan Farkhutdinov <[email protected]>
1 parent 42e9513 commit 5a6bc3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/dropDownEditors.deprecation.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import 'ui/color_box';
44
import 'ui/drop_down_box';
55
import errors from 'core/errors';
66

7-
const LICENSE_WARNING = 'W0022';
7+
const DEPRECATED_WARNING = 'W0001';
88

99
const FIELD_TEMPLATE_WARNING_ARGS = (componentName) => [
10-
'W0001',
10+
DEPRECATED_WARNING,
1111
componentName,
1212
'fieldTemplate',
1313
'25.2',
@@ -36,7 +36,7 @@ QUnit.module('Deprecated fieldTemplate', {
3636
this.errorsSpy = sinon.spy(errors, 'log');
3737

3838
this.getFilteredWarnings = () =>
39-
this.errorsSpy.getCalls().filter(({ args }) => args[0] !== LICENSE_WARNING);
39+
this.errorsSpy.getCalls().filter(({ args }) => args[0] === DEPRECATED_WARNING);
4040

4141
this.assertWarningIsCorrect = (assert, name) => {
4242
const warnings = this.getFilteredWarnings();

0 commit comments

Comments
 (0)