Rewrite tests to use ES6 modules.
[dygraphs.git] / auto_tests / tests / scientific_notation.js
index ebbf2ed..a502484 100644 (file)
@@ -5,14 +5,13 @@
  *
  * @author danvk@google.com (Dan Vanderkam)
  */
-describe("scientific-notation", function() {
 
-beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-});
+import Dygraph from '../../src/dygraph';
+import {assertDeepCloseTo} from './custom_asserts';
 
-afterEach(function() {
-});
+describe("scientific-notation", function() {
+
+cleanupAfterEach();
 
 function getXValues(g) {
   var xs = [];