Last active
December 12, 2022 12:20
-
-
Save ManuelDeLeon/f77af4b6a61ea50cc860aa8661aa4f03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jasmine.getEnv().addReporter({ | |
suiteDone() { | |
// Clear the styles after each test suite. | |
const head: HTMLHeadElement = document.getElementsByTagName("head")[0]; | |
const styles: HTMLCollectionOf<HTMLStyleElement> = head.getElementsByTagName("style"); | |
for (let i = 0; i < styles.length; i++) { | |
head.removeChild(styles[i]); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment