Skip to content

Commit

Permalink
Move setup to suiteSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed May 11, 2017
1 parent 55b2d16 commit d5b282f
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions test/unit/property-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d5b282f

Please sign in to comment.