From 2fdbca6cfaad767cf19e68306e354f6c34cbbc36 Mon Sep 17 00:00:00 2001 From: Roman Filippov Date: Thu, 1 Dec 2022 23:12:28 +0000 Subject: [PATCH] fix: adds a test for SA --- src/operations/profiles/types.test.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/operations/profiles/types.test.ts b/src/operations/profiles/types.test.ts index de0d3d77a..a20b5d248 100644 --- a/src/operations/profiles/types.test.ts +++ b/src/operations/profiles/types.test.ts @@ -33,7 +33,23 @@ describe('Profile', () => { }, }) + const resSA = t.Profile.decode({ + profileId: 2984328618318898, + countryCode: 'SA', + currencyCode: 'SAR', + dailyBudget: 9.99999999e8, + timezone: 'Asia/Riyadh', + accountInfo: { + marketplaceStringId: 'A17E79C6D8DWNP', + id: 'AUZWHWR0590BC', + type: 'seller', + name: 'foo', + validPaymentMethod: true, + }, + }) + expect(isRight(res)).toBeTruthy() + expect(isRight(resSA)).toBeTruthy() }) it('should fail', () => {