Add documentation and tests for allowDirtyBuild

This commit is contained in:
Webber
2020-05-21 15:02:15 +02:00
committed by Webber Takken
parent 8c177b1bad
commit 02ff5bbef2
2 changed files with 24 additions and 0 deletions

View File

@@ -90,6 +90,16 @@ describe('Versioning', () => {
});
});
describe('isDirtyAllowed', () => {
it('does not throw', () => {
expect(() => Versioning.isDirtyAllowed).not.toThrow();
});
it('returns false by default', () => {
expect(Versioning.isDirtyAllowed).toStrictEqual(false);
});
});
describe('descriptionRegex', () => {
it('is a valid regex', () => {
expect(Versioning.descriptionRegex).toBeInstanceOf(RegExp);