Browse Source

fix up some tests

Adam Shaw 7 years ago
parent
commit
f7324b1762
1 changed files with 7 additions and 2 deletions
  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'
 import { testEventDrag } from '../lib/dnd-resize-utils'
 
 
+// TODO: Use FullCalendar.Draggable for some of these tests
+
 describe('advanced external dnd', function() {
 describe('advanced external dnd', function() {
   var dragEl
   var dragEl
 
 
@@ -39,9 +41,12 @@ describe('advanced external dnd', function() {
         })
         })
         defineTests()
         defineTests()
       })
       })
-      describe('when given duration through data-duration', function() {
+      describe('when given duration through data attribute', function() {
         beforeEach(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()
         defineTests()
       })
       })