Skip to content

Commit

Permalink
Merge pull request #75 from terra-money/fix/tests
Browse files Browse the repository at this point in the history
fix: integration tests
  • Loading branch information
emidev98 authored Jan 29, 2024
2 parents eeaf01b + 5d8de95 commit c4a3375
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 75 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
testEnvironment: 'node',
preset: 'ts-jest',
collectCoverage: true,
coverageReporters: ['text', 'cobertura'],
roots: ['<rootDir>/src'],
testTimeout: 10000,
};
2 changes: 1 addition & 1 deletion src/client/lcd/api/AuthAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('AuthAPI', () => {

describe('module accounts', () => {
it('account exists', async () => {
const accts = await auth.moduleAccountInfo('pisco-1');
const accts = await auth.moduleAccountsInfo('pisco-1');

expect(accts.length).toBeGreaterThan(0);

Expand Down
4 changes: 2 additions & 2 deletions src/client/lcd/api/IbcAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ describe('IbcClientAPI', () => {
*/

it('channels', async () => {
const [res] = await ibc.channels('pisco-1');
const res = await ibc.channels('pisco-1');
expect(res).not.toBeNull();
expect(res).not.toBeUndefined();
expect(res.length).toBeGreaterThan(0);
expect(res.channels.length).toBeGreaterThan(0);
});

it('channels for a connection', async () => {
Expand Down
70 changes: 0 additions & 70 deletions src/client/lcd/api/LegacyGovAPI.spec.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/client/lcd/api/UpgradeAPI.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('UpgradeAPI', () => {

describe('node_versions', () => {
it('module count', async () => {
expect(await upgrade.moduleVersions('pisco-1')).toHaveLength(28);
expect(await upgrade.moduleVersions('pisco-1')).toHaveLength(30);
});
});
});

0 comments on commit c4a3375

Please sign in to comment.