added test suite for chatbox, use accept/reject buttons for ToS instead of typing answer
This commit is contained in:
11
__mocks__/matrix-js-sdk.js
Normal file
11
__mocks__/matrix-js-sdk.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const mockCreateClient = jest.fn();
|
||||
export const mockStartClient = jest.fn();
|
||||
|
||||
const mockMatrix = jest.fn().mockImplementation(() => {
|
||||
return {
|
||||
createClient: mockCreateClient,
|
||||
startClient: mockStartClient
|
||||
};
|
||||
});
|
||||
|
||||
export default mockMatrix;
|
||||
Reference in New Issue
Block a user