Browse Source

Simplify test and remove support for node 6

mbroad/issue-3321
MacLeod Broad 7 years ago
parent
commit
2d1abcf248
No known key found for this signature in database GPG Key ID: F1B295D13C3CC9CF
2 changed files with 1 additions and 5 deletions
  1. +0
    -1
      .travis.yml
  2. +1
    -4
      test/DataAxis.test.js

+ 0
- 1
.travis.yml View File

@ -1,6 +1,5 @@
language: node_js language: node_js
node_js: node_js:
- "6"
- "7" - "7"
env: env:
- CXX=g++-4.8 - CXX=g++-4.8

+ 1
- 4
test/DataAxis.test.js View File

@ -6,8 +6,7 @@ var DataAxis = require('../lib/timeline/component/DataAxis');
describe('DataAxis', function () { describe('DataAxis', function () {
beforeEach(function() { beforeEach(function() {
this.jsdom_global = canvasMockify("<div id='mygraph'></div><svg id='svg'></svg>");
this.container = document.getElementById('mygraph');
this.jsdom_global = canvasMockify("<svg id='svg'></svg>");
this.svg = this.container = document.getElementById('svg'); this.svg = this.container = document.getElementById('svg');
this.body = { this.body = {
functions: {}, functions: {},
@ -19,8 +18,6 @@ describe('DataAxis', function () {
afterEach(function() { afterEach(function() {
this.jsdom_global(); this.jsdom_global();
this.container.remove();
this.container = undefined;
this.svg.remove(); this.svg.remove();
this.svg = undefined; this.svg = undefined;
}); });

Loading…
Cancel
Save