@@ -33,12 +33,12 @@ test('supports resource prefix insted of namespace', t => {
3333 }
3434 } ;
3535 const resources = { user } ;
36- const API = createAPI ( resources , [ ] , 'https://example.com' , { } ) ;
36+ const API = createAPI ( resources , [ ] , 'https://example.com' ) ;
3737
3838 API . user . get ( 1 ) ;
3939
4040 t . true ( t . context . stubCallAPIMethod . calledWithExactly (
41- null , 'https://example.com' , { } , 'user-endpoint'
41+ null , 'https://example.com' , undefined , 'user-endpoint'
4242 ) , 'correct arguments passed to callAPIMethod' ) ;
4343} ) ;
4444
@@ -65,7 +65,7 @@ test('general behaviour', t => {
6565
6666 const middleware = [ _ => _ , _ => _ ] ;
6767
68- const API = createAPI ( resources , middleware , 'https://example.com' , { } ) ;
68+ const API = createAPI ( resources , middleware , 'https://example.com' ) ;
6969
7070 t . deepEqual ( Object . keys ( API ) , [ 'user' , 'project' ] , 'resources' ) ;
7171
@@ -83,7 +83,7 @@ test('general behaviour', t => {
8383 t . true ( t . context . stubApplyMiddleware . calledOnce ) ;
8484 t . true ( t . context . stubCallAPIMethod . calledBefore ( t . context . stubApplyMiddleware ) ) ;
8585 t . true ( t . context . stubCallAPIMethod . calledWithExactly (
86- null , 'https://example.com' , { } , 'user'
86+ null , 'https://example.com' , undefined , 'user'
8787 ) ) ;
8888
8989 t . is ( t . context . stubApplyMiddleware . lastCall . args [ 0 ] , boundCallAPIMethod , 'applyMiddleware called with boundCallAPIMethod' ) ;
@@ -100,4 +100,4 @@ test('general behaviour', t => {
100100 t . true ( t . context . stubCallAPIMethod . calledTwice ) ;
101101 t . true ( t . context . stubApplyMiddleware . calledTwice ) ;
102102 t . true ( t . context . stubCallAPIMethod . calledBefore ( t . context . stubApplyMiddleware ) ) ;
103- } ) ;
103+ } ) ;
0 commit comments