From 90818bfeba64cddf2cde659f7711c9783d3ca059 Mon Sep 17 00:00:00 2001 From: Saravanan Palanisamy Date: Thu, 30 Mar 2023 21:35:55 +0400 Subject: [PATCH] fix test - throws an error when url isn't a valid project url --- __tests__/add-to-project.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/add-to-project.test.ts b/__tests__/add-to-project.test.ts index cf3b5aa4..94d42bb2 100644 --- a/__tests__/add-to-project.test.ts +++ b/__tests__/add-to-project.test.ts @@ -572,7 +572,7 @@ describe('addToProject', () => { const infoSpy = jest.spyOn(core, 'info') const gqlMock = mockGraphQL() await expect(addToProject()).rejects.toThrow( - 'https://github.com/orgs/github/repositories. Project URL should match the format https://github.com///projects/', + 'Invalid project URL: https://github.com/orgs/github/repositories. Project URL should match the format ///projects/', ) expect(infoSpy).not.toHaveBeenCalled() expect(gqlMock).not.toHaveBeenCalled()