diff options
| author | Misko Hevery | 2013-01-17 22:56:42 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2013-01-17 23:52:46 -0800 | 
| commit | 61315211da5d85d73c24169d78e060fb256670e3 (patch) | |
| tree | 2768c53db714955405a46f967fc85a1258f534fb /validate-commit-msg.spec.js | |
| parent | af89daf4641f57b92be6c1f3635f5a3237f20c71 (diff) | |
| download | angular.js-61315211da5d85d73c24169d78e060fb256670e3.tar.bz2 | |
fix(git-validator): support fixup and better errors
Diffstat (limited to 'validate-commit-msg.spec.js')
| -rw-r--r-- | validate-commit-msg.spec.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/validate-commit-msg.spec.js b/validate-commit-msg.spec.js index 4d153dc0..d4b37775 100644 --- a/validate-commit-msg.spec.js +++ b/validate-commit-msg.spec.js @@ -22,6 +22,7 @@ describe('validate-commit-msg.js', function() {    describe('validateMessage', function() {      it('should be valid', function() { +      expect(m.validateMessage('fixup! fix($compile): something')).toBe(VALID);        expect(m.validateMessage('fix($compile): something')).toBe(VALID);        expect(m.validateMessage('feat($location): something')).toBe(VALID);        expect(m.validateMessage('docs($filter): something')).toBe(VALID); @@ -50,7 +51,7 @@ describe('validate-commit-msg.js', function() {        var msg = 'not correct format';        expect(m.validateMessage(msg)).toBe(INVALID); -      expect(errors).toEqual(['INVALID COMMIT MSG: does not match "<type>(<scope>): <subject>" !']); +      expect(errors).toEqual(['INVALID COMMIT MSG: does not match "<type>(<scope>): <subject>" ! was: not correct format']);      }); | 
