@@ -3,15 +3,15 @@ describe('lib/rules/validate-jsdoc/check-return-types', function () {
33 additionalRules : [ 'lib/rules/validate-jsdoc.js' ]
44 } ) ;
55
6- describe ( 'configured' , function ( ) {
6+ describe ( 'not configured' , function ( ) {
77
8- it ( 'with undefined should throws ' , function ( ) {
8+ it ( 'should report with undefined ' , function ( ) {
99 global . expect ( function ( ) {
1010 checker . configure ( { checkReturnTypes : undefined } ) ;
1111 } ) . to . throws ( / a c c e p t e d v a l u e / i) ;
1212 } ) ;
1313
14- it ( 'with undefined should throws ' , function ( ) {
14+ it ( 'should report with an object ' , function ( ) {
1515 global . expect ( function ( ) {
1616 checker . configure ( { checkReturnTypes : { } } ) ;
1717 } ) . to . throws ( / a c c e p t e d v a l u e / i) ;
@@ -25,14 +25,13 @@ describe('lib/rules/validate-jsdoc/check-return-types', function () {
2525 checker . cases ( [
2626 /* jshint ignore:start */
2727 {
28- it : 'should not throw ' ,
28+ it : 'should not report ' ,
2929 code : function ( ) {
3030 function yay ( yey ) {
3131 }
3232 }
33-
3433 } , {
35- it : 'should throw invalid type' ,
34+ it : 'should report invalid type' ,
3635 errors : 1 ,
3736 code : function ( ) {
3837 /**
@@ -43,7 +42,7 @@ describe('lib/rules/validate-jsdoc/check-return-types', function () {
4342 }
4443 }
4544 } , {
46- it : 'should neither throw nor report' ,
45+ it : 'should not report' ,
4746 code : function ( ) {
4847 /**
4948 * @return {{a: number, b: string} }
0 commit comments