Skip to content

Commit 06d72b4

Browse files
committed
test(miniapp): DOMA-12621 add fetchLastPosReceiptUrl to B2BAppPosIntegrationConfig test fixtures
Added fetchLastPosReceiptUrl field to create and update test payloads in B2BAppPosIntegrationConfig.test.js. Updated createTestB2BAppPosIntegrationConfig helper to include fetchLastPosReceiptUrl with faker-generated URL.
1 parent 7383048 commit 06d72b4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

apps/condo/domains/miniapp/schema/B2BAppPosIntegrationConfig.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('B2BAppPosIntegrationConfig', () => {
3131
describe('create', () => {
3232
const createPayload = {
3333
paymentsAlertPageUrl: faker.internet.url(),
34+
fetchLastPosReceiptUrl: faker.internet.url(),
3435
}
3536

3637
test('admin can', async () => {
@@ -64,6 +65,7 @@ describe('B2BAppPosIntegrationConfig', () => {
6465
let createdB2BAppPosIntegrationConfig
6566
const updatePayload = {
6667
paymentsAlertPageUrl: faker.internet.url(),
68+
fetchLastPosReceiptUrl: faker.internet.url(),
6769
}
6870

6971
beforeEach(async () => {

apps/condo/domains/miniapp/utils/testSchema/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ async function createTestB2BAppPosIntegrationConfig (client, extraAttrs = {}) {
755755
dv: 1,
756756
sender,
757757
paymentsAlertPageUrl: faker.internet.url(),
758+
fetchLastPosReceiptUrl: faker.internet.url(),
758759
...extraAttrs,
759760
}
760761
const obj = await B2BAppPosIntegrationConfig.create(client, attrs)

0 commit comments

Comments
 (0)