ソースを参照

update test template

Adam Shaw 7 年 前
コミット
4223a08113
1 ファイル変更14 行追加23 行削除
  1. 14 23
      tests/automated/legacy/template.js.txt

+ 14 - 23
tests/automated/legacy/template.js.txt

@@ -1,27 +1,18 @@
-ddescribe('', function() {
-
-  var options;
-
-  beforeEach(function() {
-    //affix('#cal');
-    $('body').append('<div id="cal"></div>');
-    options = {
-      defaultDate: ''
-    };
-  });
-
-  afterEach(function() {
-    //$('#cal').fullCalendar('destroy');
-  });
+fdescribe('', function() {
+  pushOptions({
+    defaultDate: ''
+  })
 
   describe('', function() {
-    beforeEach(function() {
-      options.defaultView = '';
-    });
+    pushOptions({
+      defaultView: ''
+    })
 
-    iit('', function() {
-      $('#cal').fullCalendar(options);
-    });
-  });
+    fit('', function() {
+      initCalendar({
+        // other options
+      })
+    })
+  })
 
-});
+})