@@ -120,7 +120,7 @@ describe('state machine view', () => {
120120 renderStateMachineView ( document . body , errorMachine , diagram , 'TB' , false , true ) ;
121121
122122 const summary = document . querySelector ( '.diagram-error-text' ) ! ;
123- expect ( summary . textContent ) . toBe ( 'socket.receive() is rejected when socket is closed \u00B7 allowed when bound' ) ;
123+ expect ( summary . textContent ) . toBe ( 'socket.receive() is rejected when socket is in state closed \u00B7 allowed in state bound' ) ;
124124 expect ( Array . from ( summary . querySelectorAll ( 'code' ) , node => node . textContent ) ) . toEqual ( [ 'socket.receive()' , 'socket' , 'closed' , 'bound' ] ) ;
125125 expect ( button ( 'diagram-focus-btn' ) . textContent ?. trim ( ) ) . toBe ( 'Show all' ) ;
126126
@@ -137,19 +137,19 @@ describe('state machine view', () => {
137137 } ,
138138 } ) , diagram , 'TB' , false , true ) ;
139139
140- expect ( document . querySelector ( '.diagram-error-text' ) ?. textContent ) . toBe ( 'root.getFirstChild() is rejected when root is childrenAllowed' ) ;
140+ expect ( document . querySelector ( '.diagram-error-text' ) ?. textContent ) . toBe ( 'root.getFirstChild() is rejected when root is in state childrenAllowed' ) ;
141141 } ) ;
142142
143143 it . each ( [
144144 [
145145 'the state of the receiver is unknown' ,
146146 { possibleStates : [ 'unbound' , 'bound' , 'connected' , 'closed' ] } ,
147- 'socket.receive() is rejected: the state of socket is unknown here \u00B7 allowed when unbound or bound or connected' ,
147+ 'socket.receive() is rejected: the state of socket is unknown here \u00B7 allowed in state unbound or bound or connected' ,
148148 ] ,
149149 [
150150 'every possible state accepts the call' ,
151151 { possibleStates : [ 'bound' ] } ,
152- 'socket.receive() is rejected here \u00B7 allowed when bound' ,
152+ 'socket.receive() is rejected here \u00B7 allowed in state bound' ,
153153 ] ,
154154 ] ) ( 'summarizes the error when %s' , ( _ , errorContext , summary ) => {
155155 renderStateMachineView ( document . body , machine ( {
0 commit comments