diff --git a/packages/elements/test/create-custom-element_spec.ts b/packages/elements/test/create-custom-element_spec.ts index 0f22c9a2f2..7df5327569 100644 --- a/packages/elements/test/create-custom-element_spec.ts +++ b/packages/elements/test/create-custom-element_spec.ts @@ -45,6 +45,8 @@ if (browserDetection.supportsCustomElements) { .then(done, done.fail); }); + afterEach(() => strategy.reset()); + afterAll(() => destroyPlatform()); it('should use a default strategy for converting component inputs', () => { @@ -155,6 +157,12 @@ if (browserDetection.supportsCustomElements) { setInputValue(propName: string, value: string): void { this.inputs.set(propName, value); } + + reset(): void { + this.connectedElement = null; + this.disconnectCalled = false; + this.inputs.clear(); + } } class TestStrategyFactory implements NgElementStrategyFactory {