chore(validate-commit-msg): recognize 'revert' as valid commit type

This commit is contained in:
Igor Minar 2012-11-11 12:06:05 +01:00
parent 5ee3bbee90
commit f5b567d44b
2 changed files with 3 additions and 1 deletions

View file

@ -22,7 +22,8 @@ var TYPES = {
style: true,
refactor: true,
test: true,
chore: true
chore: true,
revert: true
};

View file

@ -32,6 +32,7 @@ describe('validate-commit-msg.js', function() {
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
expect(m.validateMessage('chore(*): something')).toBe(VALID);
expect(m.validateMessage('chore(guide/location): something')).toBe(VALID);
expect(m.validateMessage('revert(foo): something')).toBe(VALID);
expect(errors).toEqual([]);
});