Version 1
[yaffs-website] / node_modules / min-document / test / cleanup.js
diff --git a/node_modules/min-document/test/cleanup.js b/node_modules/min-document/test/cleanup.js
new file mode 100644 (file)
index 0000000..d3ae66a
--- /dev/null
@@ -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])
+        }
+    }
+}