Skip to content

Commit f545d43

Browse files
authored
Merge pull request mac-s-g#43 from mac-s-g/90-percent-coverage
testing coverage
2 parents 2f1f894 + bca1814 commit f545d43

File tree

15 files changed

+132
-30
lines changed

15 files changed

+132
-30
lines changed

.nycrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"plugins": ["transform-decorators-legacy"],
33
"require": [
44
"babel-register",
5-
"/react/test/helpers/requireSources.js"
5+
"/react/test/testHelpers/requireSources.js"
66
]
77
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"start": "node server.js",
4949
"test": "./docker/coverage.sh",
5050
"test:coverage": "nyc report --reporter=text-lcov | coveralls",
51-
"test:unit": "nyc --reporter=html --reporter=text-lcov --reporter=text mocha /react/test/**/*test.js",
52-
"test:watch": "nyc --reporter=html --reporter=text-lcov --reporter=text mocha -w /react/test/**/*test.js"
51+
"test:unit": "nyc --reporter=html --reporter=text-lcov --reporter=text mocha /react/test/**/*-test.js",
52+
"test:watch": "nyc --reporter=html --reporter=text-lcov --reporter=text mocha -w /react/test/**/*-test.js"
5353
},
5454
"repository": {
5555
"type": "git",
File renamed without changes.

test/Index-test.js renamed to test/tests/js/Index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sinon from 'sinon';
44
import { expect } from 'chai';
55
import { JSDOM } from 'jsdom';
66

7-
import Index from './../src/js/index';
7+
import Index from '/react/src/js/index';
88

99
const { window } = (new JSDOM());
1010
global.window = window;

test/components/DataTypes/Boolean-test.js renamed to test/tests/js/components/DataTypes/Boolean-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import JsonBoolean from './../../../src/js/components/DataTypes/Boolean';
6-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
7-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import JsonBoolean from '/react/src/js/components/DataTypes/Boolean';
6+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
7+
import ConfigStore from '/react/src/js/stores/ConfigStore';
88

99
describe('<JsonBoolean />', function () {
1010
const rjvId = 1;

test/components/DataTypes/DataTypeLabel-test.js renamed to test/tests/js/components/DataTypes/DataTypeLabel-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
6-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
6+
import ConfigStore from '/react/src/js/stores/ConfigStore';
77

88
describe('<DataTypeLabel />', function () {
99
const rjvId = 1;

test/components/DataTypes/Float-test.js renamed to test/tests/js/components/DataTypes/Float-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import JsonFloat from './../../../src/js/components/DataTypes/Float';
6-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
7-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import JsonFloat from '/react/src/js/components/DataTypes/Float';
6+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
7+
import ConfigStore from '/react/src/js/stores/ConfigStore';
88

99
describe('<JsonFloat />', function () {
1010
const rjvId = 1;

test/components/DataTypes/Function-test.js renamed to test/tests/js/components/DataTypes/Function-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import JsonFunction from './../../../src/js/components/DataTypes/Function';
6-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
7-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import JsonFunction from '/react/src/js/components/DataTypes/Function';
6+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
7+
import ConfigStore from '/react/src/js/stores/ConfigStore';
88

99
describe('<JsonFunction />', function () {
1010
const rjvId = 1;

test/components/DataTypes/Integer-test.js renamed to test/tests/js/components/DataTypes/Integer-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import JsonInteger from './../../../src/js/components/DataTypes/Integer';
6-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
7-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import JsonInteger from '/react/src/js/components/DataTypes/Integer';
6+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
7+
import ConfigStore from '/react/src/js/stores/ConfigStore';
88

99
describe('<JsonInteger />', function () {
1010
const rjvId = 1;

test/components/DataTypes/Nan-test.js renamed to test/tests/js/components/DataTypes/Nan-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import { shallow } from 'enzyme';
33
import {expect} from 'chai';
44

5-
import JsonNan from './../../../src/js/components/DataTypes/Nan';
6-
import DataTypeLabel from './../../../src/js/components/DataTypes/DataTypeLabel';
7-
import ConfigStore from './../../../src/js/stores/ConfigStore';
5+
import JsonNan from '/react/src/js/components/DataTypes/Nan';
6+
import DataTypeLabel from '/react/src/js/components/DataTypes/DataTypeLabel';
7+
import ConfigStore from '/react/src/js/stores/ConfigStore';
88

99
describe('<JsonNan />', function () {
1010
const rjvId = 1;

0 commit comments

Comments
 (0)