Skip to content

Instantly share code, notes, and snippets.

@ManuelDeLeon
Last active December 12, 2022 12:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ManuelDeLeon/f77af4b6a61ea50cc860aa8661aa4f03 to your computer and use it in GitHub Desktop.
Save ManuelDeLeon/f77af4b6a61ea50cc860aa8661aa4f03 to your computer and use it in GitHub Desktop.
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