mirror of
https://github.com/symfony/stimulus-testing.git
synced 2026-04-29 03:33:14 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| edd246b564 | |||
| cc5151bde1 | |||
| b79342d6c4 |
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@symfony/stimulus-testing",
|
||||
"description": "@testing-library integration for Symfony UX",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"main": "src/index.js",
|
||||
"license": "MIT",
|
||||
"author": "Titouan Galopin <galopintitouan@gmail.com>",
|
||||
|
||||
+2
-4
@@ -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