Skip to content

Commit f983c7d

Browse files
authored
Merge pull request #140 from open-source-labs/d3-testing
edited
2 parents 4452fc1 + da7dc83 commit f983c7d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
"build": "webpack --mode production",
66
"dev": "webpack --mode development --watch",
77
"test": "jest --verbose --coverage --watchAll",
8-
"lint": "eslint --ext .js --ext .jsx src",
9-
"docker-build": "docker build -t reacttt/test-lint .",
10-
"docker-check": "docker-compose up --abort-on-container-exit",
11-
"docker-test-lint": "eslint --ext .js --ext .jsx src package && jest --verbose"
8+
"lint": "eslint --ext .js --ext .jsx src"
129
},
1310
"keywords": [
1411
"react",

src/app/__tests__/Chart.test.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
/* eslint-disable import/no-named-as-default-member */
3+
/* eslint-disable import/no-named-as-default */
14
import React from 'react';
25
import { configure, mount } from 'enzyme';
36
import Adapter from 'enzyme-adapter-react-16';
4-
// eslint-disable-next-line import/no-named-as-default-member
57
import Chart from '../components/Chart';
68
// Unit test cases for d3 functionality
79
configure({ adapter: new Adapter() });
@@ -60,6 +62,7 @@ describe('Root object', () => {
6062
wrapper = mount(<Chart {...props} />);
6163
});
6264

65+
// eslint-disable-next-line jest/no-disabled-tests
6366
it('should be a deep clone of the hierarchy', () => {
6467
const instance = wrapper.instance();
6568
instance.componentDidMount();
@@ -85,4 +88,4 @@ describe('maked3Tree method', () => {
8588
instance.maked3Tree();
8689
expect(instance.removed3Tree).toHaveBeenCalledTimes(1);
8790
});
88-
});
91+
});

0 commit comments

Comments
 (0)