Skip to content

Commit

Permalink
fix: adds a test for SA
Browse files Browse the repository at this point in the history
  • Loading branch information
moltar committed Dec 1, 2022
1 parent 3932436 commit 2fdbca6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/operations/profiles/types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 2fdbca6

Please sign in to comment.