Просмотр исходного кода

linting and updates to make pr mergable

Kyle Roux 7 лет назад
Родитель
Сommit
6af65c08f7

+ 2 - 2
tests/automated/legacy/background-events.js

@@ -2,13 +2,13 @@ import { RED_REGEX } from '../lib/dom-misc'
 import {
   getBackgroundEventEls,
   getEventEls,
-  getSingleBackgroundEventEl,
+  getSingleBackgroundEventEl
 } from '../event-render/EventRenderUtils'
 import {
   getBackgroundEventElsResizerEls,
   getDayGridNonBusinessDayEls,
   getNonBusinessDayEls,
-  getDayGridRowEls,
+  getDayGridRowEls
 
 } from '../view-render/DayGridRenderUtils'
 import {

+ 3 - 3
tests/automated/legacy/dayPopoverFormat.js

@@ -18,7 +18,7 @@ describe('dayPopoverFormat', function() {
       dayPopoverFormat: { month: 'long', day: 'numeric' }
     })
     getMoreEl().simulate('click')
-    expect(getMorePopoverTitle()).toHaveText('July 29')
+    expect(getMorePopoverTitle()).toBe('July 29')
   })
 
   it('is affected by the current locale when the value is default', function() {
@@ -26,7 +26,7 @@ describe('dayPopoverFormat', function() {
       locale: 'fr'
     })
     getMoreEl().simulate('click')
-    expect(getMorePopoverTitle()).toHaveText('29 juillet 2014')
+    expect(getMorePopoverTitle()).toBe('29 juillet 2014')
   })
 
   it('still maintains the same format when explicitly set, and there is a locale', function() {
@@ -35,7 +35,7 @@ describe('dayPopoverFormat', function() {
       dayPopoverFormat: { year: 'numeric' }
     })
     getMoreEl().simulate('click')
-    expect(getMorePopoverTitle()).toHaveText('2014')
+    expect(getMorePopoverTitle()).toBe('2014')
   })
 
 })

+ 1 - 1
tests/automated/legacy/event-obj.js

@@ -35,7 +35,7 @@ describe('event object creation', function() {
 
   it('doesn\'t produce an event when an invalid start string', function() {
     var event = init({
-      start: 'asdfasdfasdf',
+      start: 'asdfasdfasdf'
     })
     expect(event).toBeUndefined()
   })

+ 1 - 1
tests/automated/legacy/titleFormat.js

@@ -36,7 +36,7 @@ describe('titleFormat', function() {
       { view: 'month', expected: 'June 2014' },
       { view: 'basicWeek', expected: 'Jun 8 - 14, 2014' },
       { view: 'agendaWeek', expected: 'June 8 - 14, 2014' },
-      { view: 'basicDay', expected: 'Thursday, June 12, 2014' },
+      { view: 'basicDay', expected: 'Thursday, June 12, 2014' }
     ]
 
     beforeEach(function() {

+ 4 - 4
tests/automated/view-render/DayGridRenderUtils.js

@@ -103,7 +103,7 @@ export function getMorePopoverEl() {
 }
 
 export function getMorePopoverTitle() {
-  return getMorePopoverEl().find(`.${HEADER_CLASS} .${TITLE_CLASS}`)
+  return getMorePopoverEl().find(`.${HEADER_CLASS} .${TITLE_CLASS}`).text()
 }
 
 export function getDayGridRowEls() {
@@ -120,9 +120,9 @@ export function getDayGridRowDayElAtIndex(index) {
 
 export function getHeaderTopEls() {
   return $(`.${WIDGET_HEADER_CLASS}`)
-  .not(`.${ROW_CLASS}`)
-  .not(`.${HEAD_CONTAINER_CLASS}`)
-  .not(`.${DIVIDER_CLASS}`)
+    .not(`.${ROW_CLASS}`)
+    .not(`.${HEAD_CONTAINER_CLASS}`)
+    .not(`.${DIVIDER_CLASS}`)
 }
 
 export function getBackgroundEventElsResizerEls() {