backport
Version:
A CLI tool that automates the process of backporting commits
12 lines • 633 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const commitFormatters_1 = require("./commitFormatters");
describe('getFirstCommitMessageLine', () => {
it('should only return the first line of the message', () => {
expect((0, commitFormatters_1.getFirstLine)('My commit message (#1234)\n\n Additional commit message body')).toEqual('My commit message (#1234)');
});
it('should return the commit message as-is', () => {
expect((0, commitFormatters_1.getFirstLine)('My commit message')).toEqual('My commit message');
});
});
//# sourceMappingURL=commitFormatters.test.js.map