This commit is contained in:
Sidharth Vinod 2022-09-03 13:31:13 +05:30
parent f6d69b33b3
commit b84511b314
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,7 @@
/**
* Mocks for `./mermaidAPI`.
*
* We can't easily use `jest.spyOn(mermaidAPI, "function")` since the object
* is frozen with `Object.freeze()`.
*
* We can't easily use `jest.spyOn(mermaidAPI, "function")` since the object is frozen with `Object.freeze()`.
*/
import * as configApi from '../config';
@ -42,6 +41,6 @@ export const mermaidAPI = {
configApi.reset(configApi.defaultConfig);
},
defaultConfig: configApi.defaultConfig,
}
};
export default mermaidAPI;