Skip to content

Commit

Permalink
fix test bug
Browse files Browse the repository at this point in the history
Signed-off-by: Shrenuj Bansal <[email protected]>
  • Loading branch information
shrenujb committed Mar 13, 2024
1 parent 09ef07c commit 79bdc3e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions indexer/packages/postgres/__tests__/lib/api-translations.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,20 @@ describe('apiTranslations', () => {
});

describe('getChildSubaccountNums', () => {
it('Gets a list of all possible child subaccount numbers for a parent subaccount number', () => {
it('Gets a list of all possible child subaccount numbers for a parent subaccount 0', () => {
const childSubaccounts = getChildSubaccountNums(0);
expect(childSubaccounts.length).toEqual(1000);
expect(childSubaccounts[0]).toEqual(0);
expect(childSubaccounts[127]).toEqual(127);
expect(childSubaccounts[1]).toEqual(128);
expect(childSubaccounts[999]).toEqual(128 * 999);
});
it('Gets a list of all possible child subaccount numbers for a parent subaccount 127', () => {
const childSubaccounts = getChildSubaccountNums(127);
expect(childSubaccounts.length).toEqual(1000);
expect(childSubaccounts[0]).toEqual(127);
expect(childSubaccounts[1]).toEqual(128 + 127);
expect(childSubaccounts[999]).toEqual(128 * 999 + 127);
});
});

describe('getChildSubaccountNums', () => {
Expand Down

0 comments on commit 79bdc3e

Please sign in to comment.