Skip to content

Commit d5b282f

Browse files
committed
Move setup to suiteSetup
1 parent 55b2d16 commit d5b282f

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

test/unit/property-effects.html

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,16 +1508,20 @@
15081508

15091509
suite('a la carte usage of API', function() {
15101510

1511-
class BaseClass extends Polymer.PropertyEffects(HTMLElement) {
1512-
connectedCallback() {
1513-
this.pcSpy = sinon.spy();
1514-
this._flushProperties();
1515-
}
1516-
_propertiesChanged(props, changedProps, oldProps) {
1517-
this.pcSpy(props, changedProps, oldProps);
1518-
super._propertiesChanged(props, changedProps, oldProps);
1511+
let BaseClass;
1512+
1513+
suiteSetup(function() {
1514+
BaseClass = class extends Polymer.PropertyEffects(HTMLElement) {
1515+
connectedCallback() {
1516+
this.pcSpy = sinon.spy();
1517+
this._flushProperties();
1518+
}
1519+
_propertiesChanged(props, changedProps, oldProps) {
1520+
this.pcSpy(props, changedProps, oldProps);
1521+
super._propertiesChanged(props, changedProps, oldProps);
1522+
}
15191523
}
1520-
}
1524+
});
15211525

15221526
test('generic property effect', function() {
15231527
class TestClass extends BaseClass {

0 commit comments

Comments
 (0)