aboutsummaryrefslogtreecommitdiff
path: root/node_modules/min-document/test/cleanup.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/min-document/test/cleanup.js')
-rw-r--r--node_modules/min-document/test/cleanup.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/min-document/test/cleanup.js b/node_modules/min-document/test/cleanup.js
new file mode 100644
index 000000000..d3ae66ab1
--- /dev/null
+++ b/node_modules/min-document/test/cleanup.js
@@ -0,0 +1,13 @@
+module.exports = Cleanup
+
+function Cleanup (document) {
+
+ return cleanup
+
+ function cleanup () {
+ var childNodes = document.body.childNodes
+ for (var i = 0; i < childNodes.length; i++) {
+ document.body.removeChild(childNodes[i])
+ }
+ }
+}