Skip to content

Commit

Permalink
100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tur-nr committed Apr 12, 2017
1 parent 826de54 commit 87eb173
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/polymer-redux.func-spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
},
none: {
type: String
},
actions: {
type: String,
}
}
});
Expand All @@ -121,12 +124,20 @@
it('should warn againgst "notify" flag on properties', function() {
sinon.assert.calledWithMatch(
this.warnSpy,
sinon.match.string,
sinon.match(/two-way bindings/),
sinon.match(this.propertyElement.is),
sinon.match('warn')
);
});

it('should warn of inaccessible "actions" properties', function() {
sinon.assert.calledWithMatch(
this.warnSpy,
sinon.match(/inaccessible property/),
sinon.match(this.propertyElement.is)
);
});

it('should set "readOnly" property to statePath from store', function() {
assert.equal(this.propertyElement.read, this.state.read);
});
Expand Down

0 comments on commit 87eb173

Please sign in to comment.