usage
[dygraphs.git] / auto_tests / tests / update_while_panning.js
index a94f6bd..c810f1a 100644 (file)
@@ -5,14 +5,13 @@
  *
  * @author dan@dygraphs.com (Dan Vanderkam)
  */
-describe("update-while-panning", function() {
 
-beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-});
+import Dygraph from '../../src/dygraph';
+import DygraphOps from './DygraphOps';
 
-afterEach(function() {
-});
+describe("update-while-panning", function() {
+
+cleanupAfterEach();
 
 // This tests the following sequence:
 // 1. Begin dragging a chart (x-panning)
@@ -30,7 +29,8 @@ it('testUpdateWhilePanning', function() {
   var opts = {
     width: 480,
     height: 320,
-    valueRange: [-2, 2]
+    valueRange: [-2, 2],
+    labels: ['X', 'Y']
   };
 
   var graph = document.getElementById("graph");