aboutsummaryrefslogtreecommitdiffstats
path: root/validate-commit-msg.spec.js
diff options
context:
space:
mode:
authorIgor Minar2012-10-18 03:26:08 -0700
committerIgor Minar2012-10-18 03:29:12 -0700
commitace81c053cda690b7c8379e9852f52f16ae368f5 (patch)
treec4a4fd203d9c2187042144a4f26c18d5b86c316a /validate-commit-msg.spec.js
parent1e95c419b8e8dec8c1d2c587d7aa3d0edd7b73aa (diff)
downloadangular.js-ace81c053cda690b7c8379e9852f52f16ae368f5.tar.bz2
chore(validate-commit-msg): allow * and - in scope string
Diffstat (limited to 'validate-commit-msg.spec.js')
-rw-r--r--validate-commit-msg.spec.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/validate-commit-msg.spec.js b/validate-commit-msg.spec.js
index 8eb4f3bd..2ea3cf16 100644
--- a/validate-commit-msg.spec.js
+++ b/validate-commit-msg.spec.js
@@ -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([]);
});