Add SIgn in form snapshot test

This commit is contained in:
jwu-fisker
2021-01-06 19:50:13 -08:00
parent 59e3339d46
commit 518c98444b
3 changed files with 179 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import React from 'react';
export const UserProvider = ({ children }) => {
return (
<div data-testid="mocked-userprovider">
{children}
</div>
);
};
export const useUserContext = () => ({
fetching: false,
token: null,
error: null,
setError: jest.fn(),
signIn: jest.fn(),
signUp: jest.fn(),
signOut: jest.fn(),
});