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

Module id validation and operators e2e tests #152

Conversation

Amuhar
Copy link
Contributor

@Amuhar Amuhar commented Sep 10, 2023

No description provided.

src/http/sr-modules/sr-modules.service.ts Outdated Show resolved Hide resolved
src/http/sr-modules/sr-modules.e2e-spec.ts Outdated Show resolved Hide resolved
});
});

describe('The /modules/:module_id/operators/:operator_id', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a test to get data by module address?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added /* eslint-disable @typescript-eslint/no-unused-vars */

because of

lass KeysRegistryServiceMock {
    async update(moduleAddress, blockHash) {
      return;
    }
  }

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant that we have tests for module.id but not for module.address, although both scenarios are supported in the code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confused conversation , sorry
added test yesterday for moduleAddress

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amuhar Amuhar merged commit 376cc88 into feat/val-189-remove-extra-keys-interfaces Sep 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants