Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: integration tests #75

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
});
});
});
Loading