Skip to content

Commit

Permalink
Merge pull request #2442 from dusk-network/feature-2441
Browse files Browse the repository at this point in the history
web-wallet: Remove duplicate `rejectAfter` and `resolveAfter` functions
  • Loading branch information
ascartabelli authored Sep 20, 2024
2 parents f632304 + bc27f3e commit 204431f
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { cleanup, render } from "@testing-library/svelte";

import { rejectAfter, resolveAfter } from "$lib/dusk/test-helpers";
import { rejectAfter, resolveAfter } from "$lib/dusk/promise";

import { OperationResult } from "..";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { afterAll, afterEach, describe, expect, it, vi } from "vitest";
import { get } from "svelte/store";
import { base } from "$app/paths";

import { resolveAfter } from "$lib/dusk/test-helpers";
import { resolveAfter } from "$lib/dusk/promise";
import { settingsStore } from "$lib/stores";
import { transactions } from "$lib/mock-data";
import { sortByHeightDesc } from "$lib/transactions";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { cleanup, render } from "@testing-library/svelte";

import { rejectAfter, resolveAfter } from "$lib/dusk/test-helpers";
import { rejectAfter, resolveAfter } from "$lib/dusk/promise";

import { Suspense } from "..";

Expand Down
30 changes: 0 additions & 30 deletions web-wallet/src/lib/dusk/test-helpers/__tests__/rejectAfter.spec.js

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions web-wallet/src/lib/dusk/test-helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ export { default as getAsHTMLElement } from "./getAsHTMLElement";
export { default as mockReadableStore } from "./mockReadableStore";
export { default as renderWithSimpleContent } from "./renderWithSimpleContent";
export { default as renderWithSlots } from "./renderWithSlots";
export { default as rejectAfter } from "./rejectAfter";
export { default as resolveAfter } from "./resolveAfter";
export { default as SlotContent } from "./SlotContent.svelte";
7 changes: 0 additions & 7 deletions web-wallet/src/lib/dusk/test-helpers/rejectAfter.js

This file was deleted.

7 changes: 0 additions & 7 deletions web-wallet/src/lib/dusk/test-helpers/resolveAfter.js

This file was deleted.

2 changes: 1 addition & 1 deletion web-wallet/src/lib/stores/__tests__/walletStore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { keys } from "lamb";
import { Gas, Wallet } from "@dusk-network/dusk-wallet-js";

import { addresses, transactions } from "$lib/mock-data";
import { rejectAfter, resolveAfter } from "$lib/dusk/test-helpers";
import { rejectAfter, resolveAfter } from "$lib/dusk/promise";

import { walletStore } from "..";
import { waitFor } from "@testing-library/svelte";
Expand Down

0 comments on commit 204431f

Please sign in to comment.