@@ -15,63 +15,63 @@ const dummy = {
1515    path : [ 'path' ,  'to' ,  'resource' ] , 
1616    query : {  param : 'value'  } , 
1717    options : {  credentials : 'include'  } , 
18-     method : 'text' 
18+     type : 'text' 
1919} ; 
2020
2121test ( 'should set correct HTTP method' ,  t  =>  { 
2222    t . deepEqual ( GET ( dummy ) ,  { 
2323        path : [ 'path' ,  'to' ,  'resource' ] , 
2424        query : {  param : 'value'  } , 
2525        options : {  credentials : 'include' ,  method : 'GET'  } , 
26-         method : 'text' 
26+         type : 'text' 
2727    } ,  'GET' ) ; 
2828    t . deepEqual ( HEAD ( dummy ) ,  { 
2929        path : [ 'path' ,  'to' ,  'resource' ] , 
3030        query : {  param : 'value'  } , 
3131        options : {  credentials : 'include' ,  method : 'HEAD'  } , 
32-         method : 'text' 
32+         type : 'text' 
3333    } ,  'HEAD' ) ; 
3434    t . deepEqual ( POST ( dummy ) ,  { 
3535        path : [ 'path' ,  'to' ,  'resource' ] , 
3636        query : {  param : 'value'  } , 
3737        options : {  credentials : 'include' ,  method : 'POST'  } , 
38-         method : 'text' 
38+         type : 'text' 
3939    } ,  'POST' ) ; 
4040    t . deepEqual ( PUT ( dummy ) ,  { 
4141        path : [ 'path' ,  'to' ,  'resource' ] , 
4242        query : {  param : 'value'  } , 
4343        options : {  credentials : 'include' ,  method : 'PUT'  } , 
44-         method : 'text' 
44+         type : 'text' 
4545    } ,  'PUT' ) ; 
4646    t . deepEqual ( DELETE ( dummy ) ,  { 
4747        path : [ 'path' ,  'to' ,  'resource' ] , 
4848        query : {  param : 'value'  } , 
4949        options : {  credentials : 'include' ,  method : 'DELETE'  } , 
50-         method : 'text' 
50+         type : 'text' 
5151    } ,  'DELETE' ) ; 
5252    t . deepEqual ( CONNECT ( dummy ) ,  { 
5353        path : [ 'path' ,  'to' ,  'resource' ] , 
5454        query : {  param : 'value'  } , 
5555        options : {  credentials : 'include' ,  method : 'CONNECT'  } , 
56-         method : 'text' 
56+         type : 'text' 
5757    } ,  'CONNECT' ) ; 
5858    t . deepEqual ( OPTIONS ( dummy ) ,  { 
5959        path : [ 'path' ,  'to' ,  'resource' ] , 
6060        query : {  param : 'value'  } , 
6161        options : {  credentials : 'include' ,  method : 'OPTIONS'  } , 
62-         method : 'text' 
62+         type : 'text' 
6363    } ,  'OPTIONS' ) ; 
6464    t . deepEqual ( TRACE ( dummy ) ,  { 
6565        path : [ 'path' ,  'to' ,  'resource' ] , 
6666        query : {  param : 'value'  } , 
6767        options : {  credentials : 'include' ,  method : 'TRACE'  } , 
68-         method : 'text' 
68+         type : 'text' 
6969    } ,  'TRACE' ) ; 
7070    t . deepEqual ( PATCH ( dummy ) ,  { 
7171        path : [ 'path' ,  'to' ,  'resource' ] , 
7272        query : {  param : 'value'  } , 
7373        options : {  credentials : 'include' ,  method : 'PATCH'  } , 
74-         method : 'text' 
74+         type : 'text' 
7575    } ,  'PATCH' ) ; 
7676} ) ; 
7777
0 commit comments