Fix tests

old
Javi Velasco 2017-05-24 10:38:04 +02:00
parent be80e0bb85
commit 9a9396fa0b
5 changed files with 9 additions and 8 deletions

View File

@ -225,6 +225,6 @@ const factory = (FontIcon) => {
};
const Input = factory(InjectedFontIcon);
export default themr(INPUT, null, { withRef: true })(Input);
export default themr(INPUT)(Input);
export { factory as inputFactory };
export { Input };

View File

@ -6,7 +6,8 @@ const postcss = require('gulp-postcss');
gulp.task('js', function () {
return gulp.src([
'./components/**/*.js',
'!./components/**/__test__/*.js',
'!./components/**/*.spec.js',
'!./components/**/__test__',
'!./components/__mocks__/**/*.js'
])
.pipe(babel())

View File

@ -87,7 +87,7 @@
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.3.6",
"rimraf": "^2.6.1",
"style-loader": "^0.18.0",
"style-loader": "^0.18.1",
"stylelint": "^7.10.1",
"stylelint-config-standard": "^16.0.0",
"stylelint-order": "^0.4.4",
@ -125,10 +125,10 @@
"(\\.css$)|(normalize.css/normalize)|(^exports-loader)": "identity-obj-proxy"
},
"modulePaths": [
"<rootDir>"
"<rootDir>/components"
],
"setupFiles": [
"./jest.config.js"
"./jest.setup.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"

View File

@ -6656,9 +6656,9 @@ strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
style-loader@^0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.18.0.tgz#5b7a895860bda966286c8bb80ffd4ccbaf0411f5"
style-loader@^0.18.1:
version "0.18.1"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.18.1.tgz#6afca8953c842830e5e2dc84796309880a97f7e8"
dependencies:
loader-utils "^1.0.2"
schema-utils "^0.3.0"