@@ -111,22 +111,22 @@ describe("Messages", function () {
111
111
112
112
expect ( function ( ) {
113
113
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 \] ) / ) ;
115
115
116
116
if ( spyA . calledImmediatelyBefore ) {
117
117
expect ( function ( ) {
118
118
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 \] ) / ) ;
120
120
}
121
121
122
122
expect ( function ( ) {
123
123
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 \] ) / ) ;
125
125
126
126
if ( spyB . calledImmediatelyAfter ) {
127
127
expect ( function ( ) {
128
128
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 \] ) / ) ;
130
130
}
131
131
} ) ;
132
132
@@ -142,22 +142,22 @@ describe("Messages", function () {
142
142
143
143
expect ( function ( ) {
144
144
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 \] ) / ) ;
146
146
147
147
if ( spyA . calledImmediatelyBefore ) {
148
148
expect ( function ( ) {
149
149
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 \] ) / ) ;
151
151
}
152
152
153
153
expect ( function ( ) {
154
154
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 \] ) / ) ;
156
156
157
157
if ( spyB . calledImmediatelyAfter ) {
158
158
expect ( function ( ) {
159
159
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 \] ) / ) ;
161
161
}
162
162
} ) ;
163
163
} ) ;
0 commit comments