Closed dskloetd closed 1 week ago
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.
NnsProposals.spec.ts
Mock proposalsApi.queryProposals instead of GovernanceCanister.
proposalsApi.queryProposals
GovernanceCanister
Test only change.
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 ofGovernanceCanister
.Tests
Test only change.
Todos