dfinity / nns-dapp

The Dapp of the Internet Computer's Network Nervous System.
https://nns.ic0.app/
Other
110 stars 37 forks source link

Mock proposals API instead of GovernanceCanister in NnsProposals.spec.ts #5399

Closed dskloetd closed 1 week ago

dskloetd commented 1 week ago

Motivation

We normally mock the API layer unless we are testing the API. NnsProposals.spec.ts was mocking the canister and even had a TODO not to do that.

Changes

Mock proposalsApi.queryProposals instead of GovernanceCanister.

Tests

Test only change.

Todos