Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should be a function w/o arguments', () => {
cleanup();
// $ExpectError
cleanup(1);
});
});
export function cleanup() {
rtl.cleanup();
resetPlugins();
}
function cleanupAfterController() {
const controller = document.querySelector(controllerTag);
if (controller) {
controller.remove();
}
const element = document.querySelector(elementTag);
if (element) {
element.remove();
}
cleanup();
}