@@ -139,7 +139,7 @@ describe("Cloud device API", (): void => {
139139 cloudDeviceApiRequest . SaleToPOIRequest . MessageHeader . ServiceID = id ;
140140 const saleToAcquirerData : cloudDevice . SaleToAcquirerData = new cloudDevice . SaleToAcquirerData ( ) ;
141141 saleToAcquirerData . currency = "EUR" ;
142- cloudDeviceApiRequest . SaleToPOIRequest . ReversalRequest ! . SaleData ! . SaleToAcquirerData = saleToAcquirerData ;
142+ cloudDeviceApiRequest . SaleToPOIRequest . ReversalRequest ! . SaleData ! . SaleToAcquirerData = saleToAcquirerData ;
143143
144144 const merchantAccount = "TestMerchantAccount" ;
145145 const deviceId = "P400Plus-123456789" ;
@@ -202,7 +202,7 @@ describe("Cloud device API", (): void => {
202202
203203 expect ( response ) . toBeDefined ( ) ;
204204 expect ( response ) . toEqual ( "ok" ) ;
205- } ) ;
205+ } ) ;
206206
207207 test ( "should make an encrypted sync request" , async ( ) : Promise < void > => {
208208 scope . post ( "/merchants/TestMerchantAccount/devices/MX915-284251016/sync" ) . reply ( 200 , syncEncryptedResponse ) ;
@@ -228,7 +228,7 @@ describe("Cloud device API", (): void => {
228228 // verify deviceId is set on request
229229 expect ( cloudDeviceApiSecuredRequest . SaleToPOIRequest . MessageHeader . POIID ) . toBe ( deviceId ) ;
230230
231- } ) ;
231+ } ) ;
232232
233233 test ( "should throw CloudDeviceApiError when request fails" , async ( ) : Promise < void > => {
234234 scope . post ( "/merchants/TestMerchantAccount/devices/P400Plus-123456789/sync" ) . replyWithError ( "timeout" ) ;
@@ -259,24 +259,24 @@ describe("Cloud device API", (): void => {
259259
260260describe ( "should build the expected CloudDeviceAPI endpoints" , ( ) => {
261261
262- it ( "should return the sync endpoint" , ( ) => {
263- const endpoint = cloudDeviceAPI . getSyncEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
264- expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/sync" ) ;
265- } ) ;
266-
267- it ( "should return the async endpoint" , ( ) => {
268- const endpoint = cloudDeviceAPI . getAsyncEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
269- expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/async" ) ;
270- } ) ;
271-
272- it ( "should return the connected devices endpoint" , ( ) => {
273- const endpoint = cloudDeviceAPI . getConnectedDevicesEndpoint ( "TestMerchantAccount" ) ;
274- expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/connectedDevices" ) ;
275- } ) ;
276-
277- it ( "should return the device status endpoint" , ( ) => {
278- const endpoint = cloudDeviceAPI . getDeviceStatusEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
279- expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/status" ) ;
280- } ) ;
281-
262+ it ( "should return the sync endpoint" , ( ) => {
263+ const endpoint = cloudDeviceAPI . getSyncEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
264+ expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/sync" ) ;
265+ } ) ;
266+
267+ it ( "should return the async endpoint" , ( ) => {
268+ const endpoint = cloudDeviceAPI . getAsyncEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
269+ expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/async" ) ;
270+ } ) ;
271+
272+ it ( "should return the connected devices endpoint" , ( ) => {
273+ const endpoint = cloudDeviceAPI . getConnectedDevicesEndpoint ( "TestMerchantAccount" ) ;
274+ expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/connectedDevices" ) ;
275+ } ) ;
276+
277+ it ( "should return the device status endpoint" , ( ) => {
278+ const endpoint = cloudDeviceAPI . getDeviceStatusEndpoint ( "TestMerchantAccount" , "P400Plus-123456789" ) ;
279+ expect ( endpoint ) . toBe ( "https://device-api-test.adyen.com/v1/merchants/TestMerchantAccount/devices/P400Plus-123456789/status" ) ;
280+ } ) ;
281+
282282} ) ;
0 commit comments