From c1b675385f8da6df24455c807e363da0079c693a Mon Sep 17 00:00:00 2001 From: kadevgraaf Date: Mon, 4 Dec 2017 11:33:34 +0100 Subject: [PATCH] Added different lines for component and unit tests contentmodulestore unit test needs fixing though. --- package.json | 2 +- test/unit/ContentModulesStore.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3a24f636a..9b7cf9971 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "dev:windows": "set HOST=127.0.0.1&& set PORT=3000&& node ./webpack/dev-server.js", "langs": "babel plugins/intl/translate.js | node", "lint": "eslint --ignore-path .gitignore -c .eslintrc \"./**/*.js\"", - "test": "npm run test:components", "test:components": "mocha test/setup.js test/components/**/*.js", + "test:unit": "mocha test/setup.js test/unit/**/*.js", "coverage": "istanbul cover _mocha -- --require babel-register test/setup.js test/components/*.js", "coverall": "npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage", "countLOC": "sloc -f cli-table -k total,source,comment,empty -e node_modules\\|coverage\\|.git\\|bower_components\\|custom_modules ./", diff --git a/test/unit/ContentModulesStore.js b/test/unit/ContentModulesStore.js index ad81fd5b1..7b52ca728 100644 --- a/test/unit/ContentModulesStore.js +++ b/test/unit/ContentModulesStore.js @@ -2,7 +2,8 @@ import React from 'react'; import createMockComponentContext from 'fluxible/utils/createMockComponentContext'; import provideContext from 'fluxible-addons-react/provideContext'; import connectToStores from 'fluxible-addons-react/connectToStores'; -import TestUtils from 'react-addons-test-utils'; +//import TestUtils from 'react-addons-test-utils'; +import TestUtils from 'react-dom/test-utils'; import {expect} from 'chai'; import ContentModuleStore from '../../stores/ContentModulesStore';