Skip to content

Commit

Permalink
Remove debugging code (#5829)
Browse files Browse the repository at this point in the history
# Motivation

Some code that mocks `createAgent` was added in
#5785 but was not meant to be
merged.

# Changes

Remove the unintended code.

# Tests

Still passes

# Todos

- [ ] Add entry to changelog (if necessary).
not necessary
  • Loading branch information
dskloetd authored Nov 21, 2024
1 parent 85029df commit 677b3f3
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as agentApi from "$lib/api/agent.api";
import * as api from "$lib/api/sns-governance.api";
import * as snsGovernanceApi from "$lib/api/sns-governance.api";
import SnsVotingCard from "$lib/components/sns-proposals/SnsVotingCard.svelte";
Expand Down Expand Up @@ -111,11 +110,6 @@ describe("SnsVotingCard", () => {
snsNeuronsStore.reset();
resetIdentity();

vi.spyOn(agentApi, "createAgent").mockImplementation(() => {
console.log('dskloetx "createAgent"', new Error().stack);
throw new Error();
});

spyRegisterVote = vi
.spyOn(snsGovernanceApi, "registerVote")
.mockResolvedValue();
Expand Down

0 comments on commit 677b3f3

Please sign in to comment.