Parcourir la source

fix up some tests

Adam Shaw il y a 7 ans
Parent
commit
f7324b1762
1 fichiers modifiés avec 7 ajouts et 2 suppressions
  1. 7 2
      tests/automated/legacy/external-dnd-advanced.js

+ 7 - 2
tests/automated/legacy/external-dnd-advanced.js

@@ -1,5 +1,7 @@
 import { testEventDrag } from '../lib/dnd-resize-utils'
 
+// TODO: Use FullCalendar.Draggable for some of these tests
+
 describe('advanced external dnd', function() {
   var dragEl
 
@@ -39,9 +41,12 @@ describe('advanced external dnd', function() {
         })
         defineTests()
       })
-      describe('when given duration through data-duration', function() {
+      describe('when given duration through data attribute', function() {
         beforeEach(function() {
-          dragEl.data('duration', '2:30')
+          dragEl.attr('data-event', JSON.stringify({
+            duration: '2:30',
+            create: false // only an external element, won't create or render as an event
+          }))
         })
         defineTests()
       })