Rewrite tests to use ES6 modules.
[dygraphs.git] / auto_tests / tests / rolling_average.js
index 5a16aa4..4b68da2 100644 (file)
@@ -3,14 +3,14 @@
  *
  * @author danvk@google.com (Dan Vanderkam)
  */
-describe("rolling-average", function() {
 
-beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-});
+import Dygraph from '../../src/dygraph';
 
-afterEach(function() {
-});
+import Util from './Util';
+
+describe("rolling-average", function() {
+
+cleanupAfterEach();
 
 it('testRollingAverage', function() {
   var opts = {