mirror of
https://github.com/symfony/stimulus-testing.git
synced 2026-03-24 17:12:10 +01:00
Fix usage of 2.0 with Jest
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user