Skip to content

Commit

Permalink
Fix lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Feb 4, 2019
1 parent 09fa985 commit 0c85340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions test/unit/path-effects-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,7 @@ Polymer({
],

created() {
this.propChanged = sinon.spy(function() {
this.debug = true;
});
this.propChanged = sinon.spy();
},

computeProp(trigger, value) {
Expand Down Expand Up @@ -382,16 +380,14 @@ Polymer({
],

created() {
this.arrayChanged = sinon.spy(function() {
this.debug = true;
});
this.arrayChanged = sinon.spy();
},

changeArray() {
if (this.array.length === 0) {
this.push('array', 'one');
} else if (this.array.length === 1) {
this.push('array', 'two')
this.push('array', 'two');
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/unit/path-effects.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
let c = {}, b = {c}, a = {b};
el.a = a;
el.resetObservers();
c = {},
c = {};
b = {c};
el.set('a.b', b);
assert.equal(el.aChanged.callCount, 1);
Expand All @@ -377,7 +377,7 @@
let c = {}, b = {c}, a = {b};
el.a = a;
el.resetObservers();
c = {},
c = {};
el.set('a.b.c', c);
assert.equal(el.aChanged.callCount, 1);
assert.deepEqual(el.aChanged.firstCall.args[0], {path: 'a.b.c', base: a, value: c});
Expand Down

0 comments on commit 0c85340

Please sign in to comment.