@@ -108,35 +108,6 @@ describe('LNbitsCallbackController', () => {
108108 } )
109109
110110 describe ( 'authorization and validation' , ( ) => {
111- it ( 'returns 403 when payment processor settings are missing' , async ( ) => {
112- createSettingsStub . returns ( {
113- network : { remoteIpHeader : 'x-forwarded-for' } ,
114- } )
115- const { controller, paymentsService } = makeController ( )
116- const res = makeRes ( )
117-
118- await controller . handleRequest ( makeReq ( ) , res )
119-
120- expect ( res . status ) . to . have . been . calledWith ( 403 )
121- expect ( res . send ) . to . have . been . calledWith ( 'Forbidden' )
122- expect ( paymentsService . getInvoiceFromPaymentsProcessor ) . to . not . have . been . called
123- } )
124-
125- it ( 'returns 403 when lnbits is not the configured processor' , async ( ) => {
126- createSettingsStub . returns ( {
127- ...baseSettings ,
128- payments : { processor : 'opennode' } ,
129- } )
130- const { controller, paymentsService } = makeController ( )
131- const res = makeRes ( )
132-
133- await controller . handleRequest ( makeReq ( ) , res )
134-
135- expect ( res . status ) . to . have . been . calledWith ( 403 )
136- expect ( res . send ) . to . have . been . calledWith ( 'Forbidden' )
137- expect ( paymentsService . getInvoiceFromPaymentsProcessor ) . to . not . have . been . called
138- } )
139-
140111 it ( 'returns 403 for invalid query parameters' , async ( ) => {
141112 const { controller } = makeController ( )
142113 const res = makeRes ( )
0 commit comments