We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8265865 commit 870c57aCopy full SHA for 870c57a
test/integration/helpers.tsx
@@ -26,7 +26,10 @@ type WidenDeep<Type> = Type extends string
26
// TODO: Fix in https://github.com/MetaMask/metamask-extension/issues/31860
27
// eslint-disable-next-line @typescript-eslint/naming-convention
28
export const createMockImplementation = <T,>(requests: Record<string, T>) => {
29
- return (method: string): Promise<T | undefined> => {
+ return (method: string): Promise<T | undefined | string> => {
30
+ if (method === 'getBearerToken') {
31
+ return Promise.resolve('mock-bearer-token-for-tests');
32
+ }
33
if (method in requests) {
34
return Promise.resolve(requests[method]);
35
}
0 commit comments