@@ -133,6 +133,13 @@ describe('expect', function () {
133133 expect ( itThrowsMessage ) . to . throwException ( / n o m a t c h / ) ;
134134 } , 'expected \'tobi\' to match /no match/' ) ;
135135
136+ expect ( itThrowsMessage ) . to . throwException ( 'tobi' ) ;
137+ expect ( itThrowsMessage ) . to . not . throwException ( 'test' ) ;
138+
139+ err ( function ( ) {
140+ expect ( itThrowsMessage ) . to . throwException ( 'no match' ) ;
141+ } , 'expected \'tobi\' to equal \'no match\'' ) ;
142+
136143 var subject2 ;
137144
138145 expect ( itThrowsString ) . to . throwException ( function ( str ) {
@@ -382,7 +389,7 @@ describe('expect', function () {
382389 err ( function ( ) {
383390 expect ( 'asd' ) . to . have . property ( 'foo' ) ;
384391 } , "expected 'asd' to have a property 'foo'" ) ;
385-
392+
386393 err ( function ( ) {
387394 expect ( { length : undefined } ) . to . not . have . property ( 'length' ) ;
388395 } , "expected { length: undefined } to not have a property 'length'" ) ;
@@ -403,7 +410,7 @@ describe('expect', function () {
403410 err ( function ( ) {
404411 expect ( 'asd' ) . to . not . have . property ( 'foo' , 3 ) ;
405412 } , "'asd' has no property 'foo'" ) ;
406-
413+
407414 err ( function ( ) {
408415 expect ( { length : undefined } ) . to . not . have . property ( 'length' , undefined ) ;
409416 } , "expected { length: undefined } to not have a property 'length'" ) ;
0 commit comments