@@ -6,7 +6,7 @@ import { TESTING_SYMBOL_NUMBER } from '../lib/constants/symbol.const';
66/**
77 * Create `Testing` instance.
88 */
9- const testing = new Testing ( false , false ) ;
9+ const testing = new Testing ( true , true ) ;
1010const toBe = new TestingToBeMatchers ( ) ;
1111/**
1212 * Tests.
@@ -118,7 +118,7 @@ testing.describe('Expects provided value', () => {
118118 . it ( '`number`' ,
119119 ( ) => toBe . number ( isNumber ) )
120120 . it ( `\`number\` between 26 to 28.` ,
121- ( ) => toBe . numberBetween ( isNumber , { min, max} ) )
121+ ( ) => toBe . numberBetween ( isNumber , min , max ) )
122122 . it ( `an \`object\`.` ,
123123 ( ) => toBe . object ( TESTING_CLASS ) )
124124 . it ( `an \`object\` with a given key.` ,
@@ -140,7 +140,7 @@ testing.describe('Expects provided value', () => {
140140 . it ( `a \`string\` type or an instance of \`String\` that includes some of the specified \`words/sentences\`` ,
141141 ( ) => toBe . stringIncludesSome ( string , [ 'Lorem1' , 'galley1' , 'It was popularised in the 1960s' ] ) )
142142 . it ( `a \`string\` between the given length.` ,
143- ( ) => toBe . stringOfLength ( isStringOfLength , { min, max} ) )
143+ ( ) => toBe . stringOfLengthBetween ( isStringOfLength , min , max ) )
144144 . it ( `a \`symbol\`` ,
145145 ( ) => toBe . symbol ( isSymbol ) )
146146 . it ( `\`true\`` ,
@@ -167,7 +167,7 @@ testing.describe('Expects provided value', () => {
167167 . it ( '`number`' ,
168168 ( ) => toBe . not . number ( undefined ) )
169169 . it ( `\`number\` between 26 to 28.` ,
170- ( ) => toBe . not . numberBetween ( 127 , { min, max} ) )
170+ ( ) => toBe . not . numberBetween ( 127 , min , max ) )
171171 . it ( `an \`object\`.` ,
172172 ( ) => toBe . not . object ( undefined ) )
173173 . it ( `an \`object\` with a given key.` ,
@@ -185,11 +185,11 @@ testing.describe('Expects provided value', () => {
185185 . it ( `a \`string\` type or an instance of \`String\`` ,
186186 ( ) => toBe . not . string ( undefined ) )
187187 . it ( `a \`string\` type or an instance of \`String\` that includes the specified \`words/sentences\`` ,
188- ( ) => toBe . not . stringIncludes ( string , [ 'Lorem1' , 'galley1' , 'It was popularised in the 1960s1' ] ) )
188+ ( ) => toBe . not . stringIncludes ( string , [ 'Lorem1' , 'galley1' , 'It was popularized in the 1960s1' ] ) )
189189 . it ( `a \`string\` type or an instance of \`String\` that includes some of the specified \`words/sentences\`` ,
190- ( ) => toBe . not . stringIncludesSome ( string , [ 'Lorem1' , 'galley1' , 'It was popularised in the 1960s1' ] ) )
190+ ( ) => toBe . not . stringIncludesSome ( string , [ 'Lorem1' , 'galley1' , 'It was popularized in the 1960s1' ] ) )
191191 . it ( `a \`string\` between the given length.` ,
192- ( ) => toBe . not . stringOfLength ( undefined , { min, max} ) )
192+ ( ) => toBe . not . stringOfLengthBetween ( undefined , min , max ) )
193193 . it ( `a \`symbol\`` ,
194194 ( ) => toBe . not . symbol ( undefined ) )
195195 . it ( `\`true\`` ,
@@ -200,3 +200,4 @@ testing.describe('Expects provided value', () => {
200200 ( ) => toBe . not . instance ( TESTING_CLASS , class Person { } ) ) ;
201201 } ) ;
202202} ) ;
203+
0 commit comments