Merge pull request #674 from danvk/module
[dygraphs.git] / auto_tests / tests / sanity.js
index 6a2ee5f..e1d37ab 100644 (file)
  *
  * @author konigsberg@google.com (Robert Konigsberg)
  */
-var DEAD_SIMPLE_DATA = 'X,Y\n10,2100';
-var ZERO_TO_FIFTY = 'X,Y\n10,0\n20,50';
+
+import Dygraph from '../../src/dygraph';
 
 describe("dygraphs-sanity", function() {
 
-beforeEach(function() {
-  document.body.innerHTML = "<div id='graph'></div>";
-});
+var DEAD_SIMPLE_DATA = 'X,Y\n10,2100';
+var ZERO_TO_FIFTY = 'X,Y\n10,0\n20,50';
+
+cleanupAfterEach();
 
 /**
  * The sanity test of sanity tests.