@@ -6,48 +6,48 @@ describe('GET => /api/v1/banks', () => {
66 console . log ( 'Server setup complete for banks tests' ) ;
77 } ) ;
88
9- it ( 'Should return 200 and all banks when no query is passed' , async function ( ) {
9+ it ( 'Should return 200 and all banks when no query is passed' , async ( ) => {
1010 await supertest ( app )
1111 . get ( '/api/v1/banks' )
1212 . expect ( 200 ) ;
1313 } ) ;
1414
15- it ( 'Should return 200 and only commercial banks' , async function ( ) {
15+ it ( 'Should return 200 and only commercial banks' , async ( ) => {
1616 await supertest ( app )
1717 . get ( '/api/v1/banks' )
1818 . query ( { bank_type : 'commercial' } )
1919 . expect ( 200 ) ;
2020 } ) ;
2121
22- it ( 'Should return 400 for invalid bank type' , async function ( ) {
22+ it ( 'Should return 400 for invalid bank type' , async ( ) => {
2323 await supertest ( app )
2424 . get ( '/api/v1/banks' )
2525 . query ( { bank_type : 'invalid-type' } )
2626 . expect ( 400 ) ;
2727 } ) ;
2828
29- it ( 'Should filter by bank_name' , async function ( ) {
29+ it ( 'Should filter by bank_name' , async ( ) => {
3030 await supertest ( app )
3131 . get ( '/api/v1/banks' )
3232 . query ( { bank_name : 'equity' } )
3333 . expect ( 200 ) ;
3434 } ) ;
3535
36- it ( 'Should filter by ussd only in commercial banks' , async function ( ) {
36+ it ( 'Should filter by ussd only in commercial banks' , async ( ) => {
3737 await supertest ( app )
3838 . get ( '/api/v1/banks' )
3939 . query ( { ussd : "*224#" } )
4040 . expect ( 200 ) ;
4141 } ) ;
4242
43- it ( 'Should filter by paybill' , async function ( ) {
43+ it ( 'Should filter by paybill' , async ( ) => {
4444 await supertest ( app )
4545 . get ( '/api/v1/banks' )
4646 . query ( { paybill : '111777' } )
4747 . expect ( 200 ) ;
4848 } ) ;
4949
50- it ( 'Should return 404 when no bank matches the query' , async function ( ) {
50+ it ( 'Should return 404 when no bank matches the query' , async ( ) => {
5151 await supertest ( app )
5252 . get ( '/api/v1/banks' )
5353 . query ( { bank_name : 'nonexistent-bank' } )
0 commit comments