Skip to content

Commit 5b9933c

Browse files
chore(tests): improve enum examples (#975)
1 parent 15d786d commit 5b9933c

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

tests/api-resources/entities.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('resource entities', () => {
5858
name: 'Ian Crease',
5959
confirmed_no_us_tax_id: true,
6060
},
61-
prongs: ['ownership'],
61+
prongs: ['control'],
6262
company_title: 'CEO',
6363
},
6464
],
@@ -310,7 +310,7 @@ describe('resource entities', () => {
310310
identification: { method: 'social_security_number', number: '078051120' },
311311
name: 'Ian Crease',
312312
},
313-
prongs: ['ownership'],
313+
prongs: ['control'],
314314
},
315315
});
316316
const rawResponse = await responsePromise.asResponse();
@@ -356,7 +356,7 @@ describe('resource entities', () => {
356356
name: 'Ian Crease',
357357
confirmed_no_us_tax_id: true,
358358
},
359-
prongs: ['ownership'],
359+
prongs: ['control'],
360360
company_title: 'CEO',
361361
},
362362
});

tests/api-resources/exports.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const client = new Increase({
1010

1111
describe('resource exports', () => {
1212
test('create: only required params', async () => {
13-
const responsePromise = client.exports.create({ category: 'account_statement_ofx' });
13+
const responsePromise = client.exports.create({ category: 'transaction_csv' });
1414
const rawResponse = await responsePromise.asResponse();
1515
expect(rawResponse).toBeInstanceOf(Response);
1616
const response = await responsePromise;
@@ -22,7 +22,7 @@ describe('resource exports', () => {
2222

2323
test('create: required and optional params', async () => {
2424
const response = await client.exports.create({
25-
category: 'account_statement_ofx',
25+
category: 'transaction_csv',
2626
account_statement_ofx: {
2727
account_id: 'account_id',
2828
created_at: {

tests/api-resources/inbound-ach-transfers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('resource inboundACHTransfers', () => {
100100
test('transferReturn: only required params', async () => {
101101
const responsePromise = client.inboundACHTransfers.transferReturn(
102102
'inbound_ach_transfer_tdrwqr3fq9gnnq49odev',
103-
{ reason: 'insufficient_funds' },
103+
{ reason: 'payment_stopped' },
104104
);
105105
const rawResponse = await responsePromise.asResponse();
106106
expect(rawResponse).toBeInstanceOf(Response);
@@ -114,7 +114,7 @@ describe('resource inboundACHTransfers', () => {
114114
test('transferReturn: required and optional params', async () => {
115115
const response = await client.inboundACHTransfers.transferReturn(
116116
'inbound_ach_transfer_tdrwqr3fq9gnnq49odev',
117-
{ reason: 'insufficient_funds' },
117+
{ reason: 'payment_stopped' },
118118
);
119119
});
120120
});

tests/api-resources/physical-cards.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('resource physicalCards', () => {
7676

7777
test('update: only required params', async () => {
7878
const responsePromise = client.physicalCards.update('physical_card_ode8duyq5v2ynhjoharl', {
79-
status: 'active',
79+
status: 'disabled',
8080
});
8181
const rawResponse = await responsePromise.asResponse();
8282
expect(rawResponse).toBeInstanceOf(Response);
@@ -89,7 +89,7 @@ describe('resource physicalCards', () => {
8989

9090
test('update: required and optional params', async () => {
9191
const response = await client.physicalCards.update('physical_card_ode8duyq5v2ynhjoharl', {
92-
status: 'active',
92+
status: 'disabled',
9393
});
9494
});
9595

tests/api-resources/simulations/ach-transfers.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('resource achTransfers', () => {
3232
test('createNotificationOfChange: only required params', async () => {
3333
const responsePromise = client.simulations.achTransfers.createNotificationOfChange(
3434
'ach_transfer_uoxatyh3lt5evrsdvo7q',
35-
{ change_code: 'incorrect_account_number', corrected_data: '123456789' },
35+
{ change_code: 'incorrect_routing_number', corrected_data: '123456789' },
3636
);
3737
const rawResponse = await responsePromise.asResponse();
3838
expect(rawResponse).toBeInstanceOf(Response);
@@ -46,7 +46,7 @@ describe('resource achTransfers', () => {
4646
test('createNotificationOfChange: required and optional params', async () => {
4747
const response = await client.simulations.achTransfers.createNotificationOfChange(
4848
'ach_transfer_uoxatyh3lt5evrsdvo7q',
49-
{ change_code: 'incorrect_account_number', corrected_data: '123456789' },
49+
{ change_code: 'incorrect_routing_number', corrected_data: '123456789' },
5050
);
5151
});
5252

tests/api-resources/simulations/card-disputes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const client = new Increase({
1111
describe('resource cardDisputes', () => {
1212
test('action: only required params', async () => {
1313
const responsePromise = client.simulations.cardDisputes.action('card_dispute_h9sc95nbl1cgltpp7men', {
14-
status: 'pending_user_information',
14+
status: 'rejected',
1515
});
1616
const rawResponse = await responsePromise.asResponse();
1717
expect(rawResponse).toBeInstanceOf(Response);
@@ -24,7 +24,7 @@ describe('resource cardDisputes', () => {
2424

2525
test('action: required and optional params', async () => {
2626
const response = await client.simulations.cardDisputes.action('card_dispute_h9sc95nbl1cgltpp7men', {
27-
status: 'pending_user_information',
27+
status: 'rejected',
2828
explanation: 'This was a valid recurring transaction',
2929
});
3030
});

tests/api-resources/simulations/physical-cards.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('resource physicalCards', () => {
1212
test('advanceShipment: only required params', async () => {
1313
const responsePromise = client.simulations.physicalCards.advanceShipment(
1414
'physical_card_ode8duyq5v2ynhjoharl',
15-
{ shipment_status: 'pending' },
15+
{ shipment_status: 'shipped' },
1616
);
1717
const rawResponse = await responsePromise.asResponse();
1818
expect(rawResponse).toBeInstanceOf(Response);
@@ -26,7 +26,7 @@ describe('resource physicalCards', () => {
2626
test('advanceShipment: required and optional params', async () => {
2727
const response = await client.simulations.physicalCards.advanceShipment(
2828
'physical_card_ode8duyq5v2ynhjoharl',
29-
{ shipment_status: 'pending' },
29+
{ shipment_status: 'shipped' },
3030
);
3131
});
3232
});

0 commit comments

Comments
 (0)