File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var expect = require('chai').expect
77 //, TestUtils = require('react-addons-test-utils')
88 , El = require ( '../src/if.jsx' )
99 , nullElement = '<noscript></noscript>'
10- , test = 'test'
10+ , textTest = 'test'
1111;
1212
1313function check ( el , eq ) {
@@ -61,6 +61,6 @@ describe('React IF component testing:', function() {
6161 check ( < El if = { ! ! 1 } then = { true } /> , '<span></span>' ) ;
6262 check ( < El if = { ! ! 1 } then = { function ( ) { return 5 + 5 ; } } /> , '<span>10</span>' ) ;
6363 check ( < El if = { ! ! 1 } then = { function ( ) { return 3 + 3 ; } ( ) } /> , '<span>6</span>' ) ;
64- check ( < El if = { ! ! 1 } then = { function ( ) { return test ; } } /> , '<span>test</span>' ) ;
64+ check ( < El if = { ! ! 1 } then = { function ( ) { return textTest ; } } /> , '<span>test</span>' ) ;
6565 } ) ;
6666} ) ;
You can’t perform that action at this time.
0 commit comments