Skip to content

Commit deb052a

Browse files
Fix corporate tests
1 parent b4e9bf7 commit deb052a

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

tests/testCorporateCardLog.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ describe('TestCorporateCardLogPage', function () {
2626
describe('TestCorporateCardLogGet', function(){
2727
this.timeout(10000);
2828
it('test_success', async () => {
29-
let cards = await starkbank.corporateCard.log.query({"limit": 1})
30-
for await (let card of cards) {
31-
card = await starkbank.corporateCard.log.get(card.id)
32-
assert(typeof card.id == typeof 'String')
29+
let cardLogs = await starkbank.corporateCard.log.query({"limit": 1})
30+
for await (let log of cardLogs) {
31+
log = await starkbank.corporateCard.log.get(log.id)
32+
assert(typeof log.id == typeof 'String')
3333
}
3434
});
3535
});
@@ -38,9 +38,9 @@ describe('TestCorporateCardLogQuery', function(){
3838
this.timeout(10000);
3939
it('test_success', async () => {
4040
let i = 0;
41-
const cards = await starkbank.corporateCard.log.query({limit: 5});
42-
for await (let card of cards) {
43-
assert(typeof card.id == 'string');
41+
const cardLogs = await starkbank.corporateCard.log.query({limit: 5});
42+
for await (let log of cardLogs) {
43+
assert(typeof log.id == 'string');
4444
i += 1;
4545
}
4646
assert(i === 5);

tests/testcorporateHolderLog.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ describe('TestCorporateHolderQuery', function(){
77
this.timeout(10000);
88
it('test_success', async () => {
99
let i = 0;
10-
const holders = await starkbank.corporateHolder.log.query({limit: 5});
11-
for await (let holder of holders) {
12-
assert(typeof holder.id == 'string');
10+
const holderLogs = await starkbank.corporateHolder.log.query({limit: 5});
11+
for await (let log of holderLogs) {
12+
assert(typeof log.id == 'string');
1313
i += 1;
1414
}
1515
assert(i === 5);
@@ -19,11 +19,11 @@ describe('TestCorporateHolderQuery', function(){
1919
describe('TestCorporateHolderGet', function () {
2020
this.timeout(10000);
2121
it('test_success', async () => {
22-
let purchases = await starkbank.corporatePurchase.log.query({limit: 1});
23-
for await (let purchase of purchases) {
24-
assert(typeof purchase.id == typeof 'string');
25-
purchase = await starkbank.corporatePurchase.log.get(purchase.id);
26-
assert(typeof purchase.id == typeof 'string');
22+
let purchaseLogs = await starkbank.corporatePurchase.log.query({limit: 1});
23+
for await (let log of purchaseLogs) {
24+
assert(typeof log.id == typeof 'string');
25+
log = await starkbank.corporatePurchase.log.get(log.id);
26+
assert(typeof log.id == typeof 'string');
2727
}
2828
});
2929
});

0 commit comments

Comments
 (0)