File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ describe('Comment', () => {
20
20
// const author = findRenderedDOMComponentWithTag(component, 'h2');
21
21
// expect(author.className).to.equal('comment-author');
22
22
const text = findRenderedDOMComponentWithTag ( component , 'span' ) ;
23
- expect ( text . className ) . to . equal ( 'comment-text' ) ;
23
+ expect ( text . className ) . to . equal ( 'js- comment-text' ) ;
24
24
} ) ;
25
25
26
26
it ( 'shows the author' , ( ) => {
27
27
const component = renderIntoDocument (
28
28
< Comment author = "Frank" text = "Hi!" />
29
29
) ;
30
30
31
- const author = findRenderedDOMComponentWithClass ( component , 'comment-author' ) ;
31
+ const author = findRenderedDOMComponentWithClass ( component , 'js- comment-author' ) ;
32
32
expect ( author . textContent ) . to . equal ( 'Frank' ) ;
33
33
} ) ;
34
34
@@ -37,7 +37,7 @@ describe('Comment', () => {
37
37
< Comment author = "Frank" text = "Hi!" />
38
38
) ;
39
39
40
- const comment = findRenderedDOMComponentWithClass ( component , 'comment-text' ) ;
40
+ const comment = findRenderedDOMComponentWithClass ( component , 'js- comment-text' ) ;
41
41
expect ( comment . textContent ) . to . equal ( 'Hi!\n' ) ;
42
42
} ) ;
43
43
} ) ;
Original file line number Diff line number Diff line change
1
+ const noop = ( ) => null ;
2
+
3
+ require . extensions [ '.css' ] = noop ;
4
+ require . extensions [ '.scss' ] = noop ;
5
+ require . extensions [ '.png' ] = noop ;
6
+ require . extensions [ '.jpg' ] = noop ;
7
+ require . extensions [ '.jpeg' ] = noop ;
8
+ require . extensions [ '.gif' ] = noop ;
Original file line number Diff line number Diff line change 24
24
},
25
25
"homepage" : " https://github.com/shakacode/react-webpack-rails-tutorial" ,
26
26
"scripts" : {
27
- "test" : " NODE_PATH=./app mocha --compilers js:babel-core/register --require ./app/libs/testHelper.js 'app/**/*.spec.@(js|jsx)'" ,
27
+ "test" : " NODE_PATH=./app mocha --compilers js:babel-core/register --require ./app/libs/testHelper.js --require ./app/libs/testNullCompiler.js 'app/**/*.spec.@(js|jsx)'" ,
28
28
"test:debug" : " npm run test -- --debug-brk" ,
29
29
"start" : " node server.js" ,
30
30
"build:client" : " NODE_ENV=production webpack --config webpack.client.rails.build.config.js" ,
You can’t perform that action at this time.
0 commit comments