projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass --grep to mocha from the command line.
[dygraphs.git]
/
auto_tests
/
tests
/
rolling_average.js
diff --git
a/auto_tests/tests/rolling_average.js
b/auto_tests/tests/rolling_average.js
index
4c281b9
..
4b68da2
100644
(file)
--- a/
auto_tests/tests/rolling_average.js
+++ b/
auto_tests/tests/rolling_average.js
@@
-3,14
+3,14
@@
*
* @author danvk@google.com (Dan Vanderkam)
*/
*
* @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 = {
it('testRollingAverage', function() {
var opts = {
@@
-85,7
+85,7
@@
it('testRollBoxDoesntDisapper', function() {
it('testRollShortFractions', function() {
var opts = {
customBars: true,
it('testRollShortFractions', function() {
var opts = {
customBars: true,
- labels: ['x', 'A']
+ labels: ['x', 'A'
, 'B'
]
};
var data1 = [ [1, 10, [1, 20]] ];
var data2 = [ [1, 10, [1, 20]],
};
var data1 = [ [1, 10, [1, 20]] ];
var data2 = [ [1, 10, [1, 20]],