File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,6 @@ describe("API Client", function (): void {
103
103
expect ( client . config . terminalApiCloudEndpoint ) . toBe ( "https://terminal-api-us.adyen.com" ) ;
104
104
} ) ;
105
105
106
- test ( "should throw error if liveEndpointUrlPrefix is missing in LIVE environment" , ( ) => {
107
- const config = new Config ( {
108
- apiKey : "ADYEN_API_KEY" ,
109
- environment : "LIVE"
110
- } ) ;
111
- expect ( ( ) => {
112
- new Client ( config ) ;
113
- } ) . toThrow ( "Live endpoint URL prefix must be provided for LIVE environment." ) ;
114
- } ) ;
115
-
116
106
test ( "should set and get custom http client" , ( ) => {
117
107
const config = new Config ( {
118
108
apiKey : "ADYEN_API_KEY" ,
Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ class Client {
54
54
}
55
55
}
56
56
57
- if ( this . config . environment === "LIVE" && ! this . config . liveEndpointUrlPrefix ) {
58
- throw new Error ( "Live endpoint URL prefix must be provided for LIVE environment." ) ;
59
- }
60
-
61
57
// legacy support for marketPayEndpoint
62
58
if ( this . config . environment === "TEST" ) {
63
59
this . config . marketPayEndpoint = Client . MARKETPAY_ENDPOINT_TEST ;
You can’t perform that action at this time.
0 commit comments