Skip to content

Commit 00edf56

Browse files
Removing unused custom graph id fixes axes tests
Let's see about the other tests
1 parent 95e328f commit 00edf56

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/jasmine/assets/create_graph_div.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict';
22

3-
module.exports = function createGraphDiv(id) {
4-
id = (id === undefined) ? 'graph' : id;
3+
module.exports = function createGraphDiv() {
54
var gd = document.createElement('div');
6-
gd.id = id;
5+
gd.id = 'graph';
76
document.body.appendChild(gd);
87

98
// force the graph to be at position 0,0 no matter what
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
22

3-
module.exports = function destroyGraphDiv(id) {
4-
id = (id === undefined) ? 'graph' : id;
5-
var gd = document.getElementById(id);
3+
module.exports = function destroyGraphDiv() {
4+
var gd = document.getElementById('graph');
65

76
if(gd) document.body.removeChild(gd);
87
};

0 commit comments

Comments
 (0)