Skip to content

Commit

Permalink
Fix shadow test state pollution (#26607)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcordry committed Feb 5, 2020
1 parent dea7576 commit 20b8997
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/test-shadow-embed.js
Expand Up @@ -311,7 +311,6 @@ describes.sandboxed('shadow-embed', {}, () => {
let isFirefox;

beforeEach(() => {
setShadowDomStreamingSupportedForTesting(undefined);
createHTMLDocumentSpy = window.sandbox.spy();
isFirefox = false;
const platform = {
Expand All @@ -338,6 +337,10 @@ describes.sandboxed('shadow-embed', {}, () => {
};
});

afterEach(() => {
setShadowDomStreamingSupportedForTesting(undefined);
});

it('should resolve to streamer', () => {
expect(createShadowDomWriter(win)).to.be.instanceOf(
ShadowDomWriterStreamer
Expand Down

0 comments on commit 20b8997

Please sign in to comment.