Merge pull request #674 from danvk/module
[dygraphs.git] / auto_tests / tests / plugins.js
index 1abccd4..f339656 100644 (file)
@@ -3,13 +3,17 @@
  *
  * @author konigsberg@google.com (Robert Konigsberg)
  */
+
+import Dygraph from '../../src/dygraph';
+import DygraphOps from './DygraphOps';
+
 describe("plugins", function() {
 
+cleanupAfterEach();
+
 var data;
 
 beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-
   data = "X,Y1,Y2\n" +
       "0,1,2\n" +
       "1,2,1\n" +
@@ -18,9 +22,6 @@ beforeEach(function() {
   ;
 });
 
-afterEach(function() {
-});
-
 it('testWillDrawChart', function() {
   var draw = 0;