Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit b79342d

Browse files
committed
Fix usage of 2.0 with Jest
1 parent 78f5aef commit b79342d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@
99

1010
'use strict';
1111

12-
const mountDOM = (htmlString = '') => {
12+
module.exports.mountDOM = (htmlString = '') => {
1313
const div = document.createElement('div');
1414
div.innerHTML = htmlString;
1515
document.body.appendChild(div);
1616

1717
return div;
1818
};
1919

20-
const clearDOM = () => {
20+
module.exports.clearDOM = () => {
2121
document.body.innerHTML = '';
2222
};
23-
24-
export { clearDOM, mountDOM };

0 commit comments

Comments
 (0)