소스 검색

skip luxon tests when appropriate

Adam Shaw 7 년 전
부모
커밋
e9dcc9ac58
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      tests/automated/datelib/luxon.js

+ 6 - 0
tests/automated/datelib/luxon.js

@@ -1,6 +1,12 @@
 import { getSingleEl, getEventElTimeText } from '../event-render/EventRenderUtils'
 import { testTimeZoneImpl } from './timeZoneImpl'
 
+if (!FullCalendar.Luxon) {
+  console.log('Luxon not present. Skipping tests.')
+}
+
+// eslint-disable-next-line
+FullCalendar.Luxon &&
 describe('luxon plugin', function() {
   let toDateTime = FullCalendar.Luxon.toDateTime
   let toDuration = FullCalendar.Luxon.toDuration