mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
chore(validate-commit-msg): allow * and - in scope string
This commit is contained in:
@@ -29,6 +29,8 @@ describe('validate-commit-msg.js', function() {
|
||||
expect(m.validateMessage('refactor($httpBackend): something')).toBe(VALID);
|
||||
expect(m.validateMessage('test($resource): something')).toBe(VALID);
|
||||
expect(m.validateMessage('chore($controller): something')).toBe(VALID);
|
||||
expect(m.validateMessage('chore(foo-bar): something')).toBe(VALID);
|
||||
expect(m.validateMessage('chore(*): something')).toBe(VALID);
|
||||
expect(errors).toEqual([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user