mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 13:47:33 +01:00
chore(changelog): change max commit message length back to 999 (sorry, @lefnire!
This commit is contained in:
@@ -13,7 +13,7 @@ var fs = require('fs');
|
||||
var util = require('util');
|
||||
|
||||
|
||||
var MAX_LENGTH = 100;
|
||||
var MAX_LENGTH = 999;
|
||||
var PATTERN = /^(?:fixup!\s*)?(\w*)(\(([\w\$\.\-\*/]*)\))?\: (.*)$/;
|
||||
var IGNORED = /^WIP\:/;
|
||||
var TYPES = {
|
||||
|
||||
@@ -40,14 +40,6 @@ describe('validate-commit-msg.js', function() {
|
||||
});
|
||||
|
||||
|
||||
it('should validate 100 characters length', function() {
|
||||
var msg = "fix($compile): something super mega extra giga tera long, maybe even longer and longer and longer... ";
|
||||
|
||||
expect(m.validateMessage(msg)).toBe(INVALID);
|
||||
expect(errors).toEqual(['INVALID COMMIT MSG: is longer than 100 characters !']);
|
||||
});
|
||||
|
||||
|
||||
it('should validate "<type>(<scope>): <subject>" format', function() {
|
||||
var msg = 'not correct format';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user