@@ -2,6 +2,7 @@ let React = require('react/addons')
22let Microscope = require ( '../index' )
33let Microcosm = require ( '../../../src/Microcosm' )
44let render = React . addons . TestUtils . renderIntoDocument
5+ let assert = require ( 'assert' )
56
67describe ( '<Microscope />' , function ( ) {
78 let test = function test ( ) { }
@@ -25,30 +26,29 @@ describe('<Microscope />', function() {
2526 app . push ( test )
2627
2728 setTimeout ( function ( ) {
28- el . state . key . should . equal ( 'value' )
29+ assert . equal ( el . state . key , 'value' )
2930 done ( )
3031 } , 100 )
3132 } )
3233
3334 it ( 'does not wrap single children' , function ( ) {
3435 let el = render ( < Microscope instance = { app } > < p /> </ Microscope > )
3536
36- el . getDOMNode ( ) . tagName . should . equal ( 'P' )
37+ assert . equal ( el . getDOMNode ( ) . tagName , 'P' )
3738 } )
3839
3940 it ( 'wraps multiple children in a span' , function ( ) {
4041 let el = render ( < Microscope instance = { app } > < p /> < p /> </ Microscope > )
4142
42- el . getDOMNode ( ) . tagName . should . equal ( 'SPAN' )
43+ assert . equal ( el . getDOMNode ( ) . tagName , 'SPAN' )
4344 } )
4445
4546 it ( 'unsubscribes when unmounting' , function ( ) {
46- sinon . spy ( app , 'ignore' )
4747
4848 React . render ( < Microscope instance = { app } > < p /> < p /> </ Microscope > , document . body )
4949 React . render ( < div /> , document . body )
5050
51- app . ignore . should . have . been . called
51+ app . emit ( )
5252 } )
5353
5454} )
0 commit comments