diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-05 18:11:15 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-05 18:11:15 -0300 |
commit | b95cc1876b7263913a3a18df9234fd0122f25cf2 (patch) | |
tree | a349b631349aa342d705c6a4068eb91d0847be0b /packages/web-util/src/tests | |
parent | cc38998803141c42511e878441a5a8b15a387436 (diff) | |
download | wallet-core-b95cc1876b7263913a3a18df9234fd0122f25cf2.tar.xz |
fix #8655
Diffstat (limited to 'packages/web-util/src/tests')
-rw-r--r-- | packages/web-util/src/tests/mock.ts | 7 | ||||
-rw-r--r-- | packages/web-util/src/tests/swr.ts | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/web-util/src/tests/mock.ts b/packages/web-util/src/tests/mock.ts index f4eb0e7aa..d09e8b4a6 100644 --- a/packages/web-util/src/tests/mock.ts +++ b/packages/web-util/src/tests/mock.ts @@ -15,7 +15,6 @@ */ import { Logger } from "@gnu-taler/taler-util"; -import { deprecate } from "util"; type HttpMethod = | "get" @@ -39,6 +38,9 @@ type HttpMethod = | "unlink" | "UNLINK"; +/** + * @deprecated do not use it, it will be removed + */ export type Query<Req, Res> = { method: HttpMethod; url: string; @@ -69,6 +71,9 @@ type MockedResponse = { expectedQuery?: ExpectationValues; }; +/** + * @deprecated do not use it, it will be removed + */ export abstract class MockEnvironment { expectations: Array<ExpectationValues> = []; queriesMade: Array<ExpectationValues> = []; diff --git a/packages/web-util/src/tests/swr.ts b/packages/web-util/src/tests/swr.ts index 903cd48d8..d5f4341f3 100644 --- a/packages/web-util/src/tests/swr.ts +++ b/packages/web-util/src/tests/swr.ts @@ -28,6 +28,7 @@ const logger = new Logger("tests/swr.ts"); * * buildTestingContext() will return a testing context * + * @deprecated do not use it, it will be removed */ export class SwrMockEnvironment extends MockEnvironment { constructor(debug = false) { |