Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix unit tests for send controller reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Apr 28, 2017
1 parent 01f3002 commit 2db7181
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/components/send/send.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ describe('send component controller', () => {
it('resets this.recipient.value and this.amount.value', () => {
controller.recipient.value = 'TEST';
controller.amount.value = '1000';
controller.sendForm = { $setUntouched: () => {} };
const mock = sinon.mock(controller.sendForm);
mock.expects('$setUntouched');

controller.reset();

expect(controller.recipient.value).to.equal('');
expect(controller.amount.value).to.equal('');
});
Expand Down

0 comments on commit 2db7181

Please sign in to comment.