2
0
Adam Shaw 7 жил өмнө
parent
commit
f8e5b484e3

+ 0 - 4
tests/automated/legacy/select-method.js

@@ -7,10 +7,6 @@ describe('select method', function() {
       defaultDate: '2014-05-25',
       selectable: true
     }
-  })
-
-  afterEach(function() {
-    currentCalendar.destroy()
   });
 
   /*

+ 2 - 6
tests/automated/legacy/titleFormat.js

@@ -55,12 +55,10 @@ describe('titleFormat', function() {
     })
 
     it('should have the correct values', function() {
-      var cal = $(currentCalendar.el)
-
       for (var i = 0; i < viewWithFormat.length; i++) {
         var crtView = viewWithFormat[i]
         currentCalendar.changeView(crtView.view)
-        expect(cal.find(SELECTOR).text()).toBe(crtView.expected)
+        expect($(currentCalendar.el).find(SELECTOR).text()).toBe(crtView.expected)
       };
     })
   })
@@ -84,12 +82,10 @@ describe('titleFormat', function() {
     })
 
     it('should have the translated dates', function() {
-      var cal = $(currentCalendar.el)
-
       for (var i = 0; i < viewWithFormat.length; i++) {
         var crtView = viewWithFormat[i]
         currentCalendar.changeView(crtView.view)
-        expect(cal.find(SELECTOR).text()).toBe(crtView.expected)
+        expect($(currentCalendar.el).find(SELECTOR).text()).toBe(crtView.expected)
       };
     })
   })