From f1d0a6c43b3cf53d5b908f81ed2416c3578ec7e3 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Tue, 7 Mar 2023 09:15:01 +0100 Subject: [PATCH] Fix review points --- .gitattributes | 3 ++- __tests__/version-utils.test.ts | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitattributes b/.gitattributes index 94f480d..693f0bc 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ -* text=auto eol=lf \ No newline at end of file +* text=auto eol=lf +.licenses/** -diff linguist-generated=true \ No newline at end of file diff --git a/__tests__/version-utils.test.ts b/__tests__/version-utils.test.ts index 16e7444..3e3b9f3 100644 --- a/__tests__/version-utils.test.ts +++ b/__tests__/version-utils.test.ts @@ -31,19 +31,19 @@ describe('isStableSemverVersion', () => { }); describe('validateSemverVersionFromTag', () => { - it('validate a tag containing an valid semantic version', () => { + it('validate a tag containing a valid semantic version', () => { expect(() => versionUtils.validateSemverVersionFromTag('1.0.0') ).not.toThrow(); }); - it("validate a tag containing an valid semantic version with 'v' prefix", () => { + it("validate a tag containing a valid semantic version with 'v' prefix", () => { expect(() => versionUtils.validateSemverVersionFromTag('v1.0.0') ).not.toThrow(); }); - it('validate a tag containing an valid semantic version with build metadata', () => { + it('validate a tag containing a valid semantic version with build metadata', () => { expect(() => versionUtils.validateSemverVersionFromTag('v1.0.0+20130313144700') ).not.toThrow(); @@ -57,7 +57,7 @@ describe('validateSemverVersionFromTag', () => { ); }); - it('throw when a tag contains an valid unstable semantic version', () => { + it('throw when a tag contains a valid unstable semantic version', () => { expect(() => versionUtils.validateSemverVersionFromTag('v1.0.0-beta.1') ).toThrow( @@ -65,7 +65,7 @@ describe('validateSemverVersionFromTag', () => { ); }); - it('throw when a tag contains an valid unstable semantic version with build metadata', () => { + it('throw when a tag contains a valid unstable semantic version with build metadata', () => { expect(() => versionUtils.validateSemverVersionFromTag('v1.0.0-beta.1+20130313144700') ).toThrow(