Sfoglia il codice sorgente

fix eventMouseover test

Adam Shaw 7 anni fa
parent
commit
1794874d07
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      tests/automated/legacy/eventMouseover.js

+ 2 - 3
tests/automated/legacy/eventMouseover.js

@@ -12,7 +12,7 @@ describe('eventMouseover', function() {
         defaultView: viewName
       })
 
-      it('will trigger a eventMouseout with updateEvent', function(done) {
+      it('will trigger a eventMouseout when updating an event', function(done) {
 
         spyOnCalendarCallback('eventMouseout', function(arg) {
           expect(typeof arg.event).toBe('object')
@@ -29,8 +29,7 @@ describe('eventMouseover', function() {
           eventMouseover: function(arg) {
             expect(typeof arg.event).toBe('object')
             expect(typeof arg.jsEvent).toBe('object')
-            arg.event.title = 'YO'
-            currentCalendar.updateEvent(arg.event)
+            arg.event.setProp('title', 'YO')
           }
         })