From a5ae58c758c2dc9dc745a11f0b50800f67e7b07b Mon Sep 17 00:00:00 2001 From: Jon Erickson Date: Fri, 29 Oct 2021 16:48:10 -0700 Subject: [PATCH] Added more tags to prerelease test --- tests/action.test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/action.test.ts b/tests/action.test.ts index 24bed1c9..507e545c 100644 --- a/tests/action.test.ts +++ b/tests/action.test.ts @@ -460,12 +460,19 @@ describe('github-tag-action', () => { const validTags = [ { - name: 'v1.2.4-prerelease.0', + name: 'v0.2.4-prerelease.0', commit: { sha: '012345', url: '' }, zipball_url: '', tarball_url: 'string', node_id: 'string', }, + { + name: 'v0.2.3-prerelease.0', + commit: { sha: '012345', url: '' }, + zipball_url: '', + tarball_url: 'string', + node_id: 'string', + } ]; jest .spyOn(utils, 'getValidTags') @@ -480,7 +487,7 @@ describe('github-tag-action', () => { * Then */ expect(mockCreateTag).toHaveBeenCalledWith( - 'v1.2.4-prerelease.1', + 'v0.2.4-prerelease.1', expect.any(Boolean), expect.any(String) );