CEC-464 can filters forms (#118)
* can filters forms and lists * unit tests * updating warnings and tests * merge develop * fixed snapshots * update jest mocks * updating tests
This commit is contained in:
16
src/components/Contexts/__mocks__/StatusContext.jsx
Normal file
16
src/components/Contexts/__mocks__/StatusContext.jsx
Normal file
@@ -0,0 +1,16 @@
|
||||
let message = ""
|
||||
let title = ""
|
||||
let sitePath = {}
|
||||
|
||||
export const StatusProvider = ({ children }) => {
|
||||
return <div data-testid="mocked-statusprovider">{children}</div>;
|
||||
};
|
||||
|
||||
export const useStatusContext = () => ({
|
||||
message,
|
||||
title,
|
||||
sitePath,
|
||||
setMessage: jest.fn(m => message = m),
|
||||
setTitle: jest.fn(t => title = t),
|
||||
setSitePath: jest.fn(s => sitePath = s),
|
||||
});
|
||||
Reference in New Issue
Block a user