Skip to content

Commit

Permalink
added a simple unit test on validMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Trazzi committed Dec 14, 2015
1 parent a1a80fc commit e9a447e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/providerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,12 @@ describe('provider', function() {
expect(successSpy2).not.toHaveBeenCalled();
expect(errorSpy2).toHaveBeenCalled();
}));

it('set/get validMethod', inject(function() {
expect(validationProvider.getValidMethod()).toEqual(null);

validationProvider.setValidMethod('submit');

expect(validationProvider.getValidMethod()).toEqual('submit');
}));
});

0 comments on commit e9a447e

Please sign in to comment.