Adam Shaw 7 лет назад
Родитель
Сommit
fee3076f7b
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      tests/automated/legacy/external-dnd-advanced.js

+ 4 - 1
tests/automated/legacy/external-dnd-advanced.js

@@ -346,10 +346,13 @@ describe('advanced external dnd', function() {
 
 
   function testExternalEventDrag(options, dragToDate, expectedDate, expectSuccess, callback) {
+    var expectedAllDay = dragToDate.indexOf('T') === -1 // for the drop callback only!
+
     options.droppable = true
     options.drop = function(arg) {
       expect(arg.date instanceof Date).toBe(true)
-      expect(arg.date).toEqualDate(expectedDate)
+      expect(arg.date).toEqualDate(dragToDate)
+      expect(arg.isAllDay).toBe(expectedAllDay)
       expect(typeof arg.jsEvent).toBe('object')
     }
     options.eventReceive = function(arg) {