Rewrite tests to use ES6 modules.
[dygraphs.git] / auto_tests / tests / update_while_panning.js
index ac01900..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)