Răsfoiți Sursa

removeEvents source now works

Adam Shaw 7 ani în urmă
părinte
comite
9846f47c92
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      tests/automated/legacy/removeEvents.js

+ 3 - 3
tests/automated/legacy/removeEvents.js

@@ -71,7 +71,7 @@ describe('removeEvents', function() {
     go(
     go(
       buildEventsWithIds(),
       buildEventsWithIds(),
       function() {
       function() {
-        currentCalendar.getEvent(1).remove()
+        currentCalendar.getEventById(1).remove()
       },
       },
       function() {
       function() {
         expect(currentCalendar.getEvents().length).toEqual(2)
         expect(currentCalendar.getEvents().length).toEqual(2)
@@ -87,7 +87,7 @@ describe('removeEvents', function() {
     go(
     go(
       buildEventsWithIds(),
       buildEventsWithIds(),
       function() {
       function() {
-        currentCalendar.getEvent('1').remove()
+        currentCalendar.getEventById('1').remove()
       },
       },
       function() {
       function() {
         expect(currentCalendar.getEvents().length).toEqual(2)
         expect(currentCalendar.getEvents().length).toEqual(2)
@@ -103,7 +103,7 @@ describe('removeEvents', function() {
     go(
     go(
       buildEventsWithIds(),
       buildEventsWithIds(),
       function() {
       function() {
-        currentCalendar.getEvent(0).remove()
+        currentCalendar.getEventById(0).remove()
       },
       },
       function() {
       function() {
         expect(currentCalendar.getEvents().length).toEqual(2)
         expect(currentCalendar.getEvents().length).toEqual(2)