From d5b282fa09f4916d7a37b067abc74c0910b133b3 Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Thu, 11 May 2017 16:20:02 -0700 Subject: [PATCH] Move setup to suiteSetup --- test/unit/property-effects.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/test/unit/property-effects.html b/test/unit/property-effects.html index 0481f2411b..c9c3c1355a 100644 --- a/test/unit/property-effects.html +++ b/test/unit/property-effects.html @@ -1508,16 +1508,20 @@ suite('a la carte usage of API', function() { - class BaseClass extends Polymer.PropertyEffects(HTMLElement) { - connectedCallback() { - this.pcSpy = sinon.spy(); - this._flushProperties(); - } - _propertiesChanged(props, changedProps, oldProps) { - this.pcSpy(props, changedProps, oldProps); - super._propertiesChanged(props, changedProps, oldProps); + let BaseClass; + + suiteSetup(function() { + BaseClass = class extends Polymer.PropertyEffects(HTMLElement) { + connectedCallback() { + this.pcSpy = sinon.spy(); + this._flushProperties(); + } + _propertiesChanged(props, changedProps, oldProps) { + this.pcSpy(props, changedProps, oldProps); + super._propertiesChanged(props, changedProps, oldProps); + } } - } + }); test('generic property effect', function() { class TestClass extends BaseClass {