@@ -111,22 +111,22 @@ describe("Messages", function () {
111111
112112 expect ( function ( ) {
113113 spyA . should . have . been . calledBefore ( spyB ) ;
114- } ) . to . throw ( " expected spyA to have been called before function spyB() {}" ) ;
114+ } ) . to . throw ( / e x p e c t e d s p y A t o h a v e b e e n c a l l e d b e f o r e ( f u n c t i o n s p y B \( \) \{ \} | \[ F u n c t i o n \] ) / ) ;
115115
116116 if ( spyA . calledImmediatelyBefore ) {
117117 expect ( function ( ) {
118118 spyA . should . have . been . calledImmediatelyBefore ( spyB ) ;
119- } ) . to . throw ( " expected spyA to have been called immediately before function spyB() {}" ) ;
119+ } ) . to . throw ( / e x p e c t e d s p y A t o h a v e b e e n c a l l e d i m m e d i a t e l y b e f o r e ( f u n c t i o n s p y B \( \) \{ \} | \[ F u n c t i o n \] ) / ) ;
120120 }
121121
122122 expect ( function ( ) {
123123 spyB . should . have . been . calledAfter ( spyA ) ;
124- } ) . to . throw ( " expected spyB to have been called after function spyA() {}" ) ;
124+ } ) . to . throw ( / e x p e c t e d s p y B t o h a v e b e e n c a l l e d a f t e r ( f u n c t i o n s p y A ( ) { } | \[ F u n c t i o n \] ) / ) ;
125125
126126 if ( spyB . calledImmediatelyAfter ) {
127127 expect ( function ( ) {
128128 spyB . should . have . been . calledImmediatelyAfter ( spyA ) ;
129- } ) . to . throw ( " expected spyB to have been called immediately after function spyA() {}" ) ;
129+ } ) . to . throw ( / e x p e c t e d s p y B t o h a v e b e e n c a l l e d i m m e d i a t e l y a f t e r ( f u n c t i o n s p y A ( ) { } | \[ F u n c t i o n \] ) / ) ;
130130 }
131131 } ) ;
132132
@@ -142,22 +142,22 @@ describe("Messages", function () {
142142
143143 expect ( function ( ) {
144144 spyA . should . not . have . been . calledBefore ( spyB ) ;
145- } ) . to . throw ( " expected spyA to not have been called before function spyB() {}" ) ;
145+ } ) . to . throw ( / e x p e c t e d s p y A t o n o t h a v e b e e n c a l l e d b e f o r e ( f u n c t i o n s p y B ( ) { } | \[ F u n c t i o n \] ) / ) ;
146146
147147 if ( spyA . calledImmediatelyBefore ) {
148148 expect ( function ( ) {
149149 spyA . should . not . have . been . calledImmediatelyBefore ( spyB ) ;
150- } ) . to . throw ( " expected spyA to not have been called immediately before function spyB() {}" ) ;
150+ } ) . to . throw ( / e x p e c t e d s p y A t o n o t h a v e b e e n c a l l e d i m m e d i a t e l y b e f o r e ( f u n c t i o n s p y B ( ) { } | \[ F u n c t i o n \] ) / ) ;
151151 }
152152
153153 expect ( function ( ) {
154154 spyB . should . not . have . been . calledAfter ( spyA ) ;
155- } ) . to . throw ( " expected spyB to not have been called after function spyA() {}" ) ;
155+ } ) . to . throw ( / e x p e c t e d s p y B t o n o t h a v e b e e n c a l l e d a f t e r ( f u n c t i o n s p y A ( ) { } | \[ F u n c t i o n \] ) / ) ;
156156
157157 if ( spyB . calledImmediatelyAfter ) {
158158 expect ( function ( ) {
159159 spyB . should . not . have . been . calledImmediatelyAfter ( spyA ) ;
160- } ) . to . throw ( " expected spyB to not have been called immediately after function spyA() {}" ) ;
160+ } ) . to . throw ( / e x p e c t e d s p y B t o n o t h a v e b e e n c a l l e d i m m e d i a t e l y a f t e r ( f u n c t i o n s p y A ( ) { } | \[ F u n c t i o n \] ) / ) ;
161161 }
162162 } ) ;
163163 } ) ;
0 commit comments