File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/devextreme/testing/helpers Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 11import $ from 'jquery' ;
2- import Views from '__internal/ui/calendar/calendar.views' ;
32
43const TEXTEDITOR_INPUT_SELECTOR = '.dx-texteditor-input' ;
54
@@ -40,18 +39,13 @@ class BaseCalendarFixture {
4039 }
4140}
4241
43- class MockMonthView extends Views [ 'month' ] {
44- renderHeader ( ) { }
45- renderBody ( ) { }
46- }
47-
4842class CalendarFixture extends BaseCalendarFixture {
4943 constructor ( options ) {
5044 super ( ) ;
5145 this . rootElement = $ ( '<div id=\'calendar\'></div>' ) ;
5246 this . rootElement . appendTo ( 'body' ) ;
5347 this . calendar = $ ( '#calendar' )
54- . dxCalendar ( $ . extend ( { monthViewType : MockMonthView } , options ) )
48+ . dxCalendar ( options )
5549 . dxCalendar ( 'instance' ) ;
5650 this . navigatorLinks = {
5751 'prevYear' : this . rootElement . find ( '.dx-calendar-navigator-previous-year' ) ,
@@ -77,7 +71,6 @@ class DateBoxFixture extends BaseCalendarFixture {
7771 . dxDateBox ( $ . extend ( true , {
7872 pickerType : 'calendar' ,
7973 displayFormat : this . format ,
80- calendarOptions : { monthViewType : MockMonthView }
8174 } , options ) )
8275 . dxDateBox ( 'instance' ) ;
8376 this . input = this . rootElement . find ( TEXTEDITOR_INPUT_SELECTOR ) ;
@@ -91,6 +84,5 @@ class DateBoxFixture extends BaseCalendarFixture {
9184}
9285
9386DevExpress . ui . testing . BaseCalendarFixture = BaseCalendarFixture ;
94- DevExpress . ui . testing . MockMonthView = MockMonthView ;
9587DevExpress . ui . testing . CalendarFixture = CalendarFixture ;
9688DevExpress . ui . testing . DateBoxFixture = DateBoxFixture ;
You can’t perform that action at this time.
0 commit comments