File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 15081508
15091509suite ( '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 {
You can’t perform that action at this time.
0 commit comments