@@ -20,32 +20,32 @@ test('records values and classifies them correctly', t => {
2020 const emptyArguments = RecordedArguments . from ( [ ] )
2121 t . deepEqual ( emptyArguments . value , [ ] )
2222 t . is ( emptyArguments . argumentsClass , 'plain' )
23- t . is ( emptyArguments . hasNoArguments , false )
23+ t . is ( emptyArguments . hasArguments ( ) , true )
2424
2525 const primitivesOnlyArguments = RecordedArguments . from ( [ 1 , 'Substitute' , false , testSymbol , undefined , null , testFunc , { } ] )
2626 t . deepEqual ( primitivesOnlyArguments . value , [ 1 , 'Substitute' , false , testSymbol , undefined , null , testFunc , { } ] )
2727 t . is ( primitivesOnlyArguments . argumentsClass , 'plain' )
28- t . is ( primitivesOnlyArguments . hasNoArguments , false )
28+ t . is ( primitivesOnlyArguments . hasArguments ( ) , true )
2929
3030 const anyArg = Arg . any ( 'any' )
3131 const withSingleArgumentArguments = RecordedArguments . from ( [ 1 , 'Substitute' , false , testSymbol , undefined , null , testFunc , { } , anyArg ] )
3232 t . deepEqual ( withSingleArgumentArguments . value , [ 1 , 'Substitute' , false , testSymbol , undefined , null , testFunc , { } , anyArg ] )
3333 t . is ( withSingleArgumentArguments . argumentsClass , 'with-predicate' )
34- t . is ( withSingleArgumentArguments . hasNoArguments , false )
34+ t . is ( withSingleArgumentArguments . hasArguments ( ) , true )
3535
3636 const allArg = Arg . all ( )
3737 const allArgumentArguments = RecordedArguments . from ( [ allArg ] )
3838 t . deepEqual ( allArgumentArguments . value , [ allArg ] )
3939 t . is ( allArgumentArguments . argumentsClass , 'wildcard' )
40- t . is ( allArgumentArguments . hasNoArguments , false )
40+ t . is ( allArgumentArguments . hasArguments ( ) , true )
4141} )
4242
4343test ( 'creates a valid instance for no arguments' , t => {
4444 const args = RecordedArguments . none ( )
4545
4646 t . is ( args . value , undefined )
4747 t . is ( args . argumentsClass , undefined )
48- t . is ( args . hasNoArguments , true )
48+ t . is ( args . hasArguments ( ) , false )
4949} )
5050
5151test ( 'sorts correctly objects with RecordedArguments' , t => {
0 commit comments