Fix usage of 2.0 with Jest

This commit is contained in:
Titouan Galopin
2021-12-09 15:43:01 +01:00
parent 78f5aef61c
commit b79342d6c4

View File

@@ -9,7 +9,7 @@
'use strict';
const mountDOM = (htmlString = '') => {
module.exports.mountDOM = (htmlString = '') => {
const div = document.createElement('div');
div.innerHTML = htmlString;
document.body.appendChild(div);
@@ -17,8 +17,6 @@ const mountDOM = (htmlString = '') => {
return div;
};
const clearDOM = () => {
module.exports.clearDOM = () => {
document.body.innerHTML = '';
};
export { clearDOM, mountDOM };