@@ -17,7 +17,7 @@ function runRanges (ranges, fn, expected) {
1717 } ) ;
1818}
1919
20- const ensureValidFormat = ( fn ) => {
20+ const assertValidFormat = ( fn ) => {
2121 const invalid = [ null , undefined , 123 , 0x00 , Infinity , { } , [ ] , true , false , ( ) => { } , Symbol ( 'test' ) ] ;
2222 invalid . forEach ( value => {
2323 try {
@@ -35,7 +35,7 @@ describe('Validator', function () {
3535
3636 describe ( 'is' , function ( ) {
3737 it ( 'validates if a value matches a unicode character (nchar)' , function ( ) {
38- ensureValidFormat ( isFormat . nchar ) ;
38+ assertValidFormat ( isFormat . nchar ) ;
3939
4040 const validRanges = [
4141 [ 45 , 46 ] , // \u002D \u002E
@@ -60,7 +60,7 @@ describe('Validator', function () {
6060 } ) ;
6161
6262 it ( 'validates if a value matches a unicode character, including exclamation marks (nqchar)' , function ( ) {
63- ensureValidFormat ( isFormat . nqchar ) ;
63+ assertValidFormat ( isFormat . nqchar ) ;
6464
6565 const validRanges = [
6666 [ 33 , 33 ] , // \u0021
@@ -81,7 +81,7 @@ describe('Validator', function () {
8181 } ) ;
8282
8383 it ( 'validates if a value matches a unicode character, including exclamation marks and spaces (nqschar)' , function ( ) {
84- ensureValidFormat ( isFormat . nqschar ) ;
84+ assertValidFormat ( isFormat . nqschar ) ;
8585
8686 const validRanges = [
8787 [ 32 , 33 ] , // \u0020-\u0021
@@ -102,7 +102,7 @@ describe('Validator', function () {
102102 } ) ;
103103
104104 it ( 'validates if a value matches a unicode character excluding the carriage return and linefeed characters (uchar)' , function ( ) {
105- ensureValidFormat ( isFormat . uchar ) ;
105+ assertValidFormat ( isFormat . uchar ) ;
106106
107107 this . timeout ( 60000 ) ;
108108 const validRanges = [
@@ -127,7 +127,7 @@ describe('Validator', function () {
127127 } ) ;
128128
129129 it ( 'validates if a value matches generic URIs (uri)' , function ( ) {
130- ensureValidFormat ( isFormat . uri ) ;
130+ assertValidFormat ( isFormat . uri ) ;
131131
132132 [ 'aa:' , 'http:' , 'https:' ] . forEach ( function ( uri ) {
133133 isFormat . uri ( uri ) . should . equal ( true ) ;
@@ -141,7 +141,7 @@ describe('Validator', function () {
141141 } ) ;
142142
143143 it ( 'validates if a value matches against the printable set of unicode characters (vschar)' , function ( ) {
144- ensureValidFormat ( isFormat . vschar ) ;
144+ assertValidFormat ( isFormat . vschar ) ;
145145
146146 const validRanges = [
147147 [ 32 , 126 ] // \u0020-\u007E
0 commit comments