MCPcopy
hub / github.com/Robdel12/DropKick / setupTesting

Function setupTesting

tests/utils/utils.js:73–89  ·  view source on GitHub ↗
(cleanUpAfterTests = true)

Source from the content-addressed store, hash-verified

71 * containers children
72 */
73export function setupTesting(cleanUpAfterTests = true) {
74 let testingContainer = document.getElementById('testingContainer');
75
76 if (!testingContainer) {
77 testingContainer = document.createElement('div');
78 testingContainer.id = "testingContainer";
79 document.body.appendChild(testingContainer);
80 }
81
82 if (cleanUpAfterTests) {
83 testingContainer.innerHTML = "";
84
85 afterEach(function() {
86 testingContainer.innerHTML = "";
87 });
88 }
89}

Callers 3

cache-test.jsFile · 0.90
jquery-test.jsFile · 0.90
dropkick-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected