From 91e9a0a11ac5791297ac83f4bd36ed753afaf46d Mon Sep 17 00:00:00 2001 From: Nogic <24802730+nogic1008@users.noreply.github.com> Date: Mon, 13 Jan 2025 20:51:39 +0900 Subject: [PATCH] test: add unit test --- __tests__/setup-dotnet.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__tests__/setup-dotnet.test.ts b/__tests__/setup-dotnet.test.ts index 8e60cd1..d10b03c 100644 --- a/__tests__/setup-dotnet.test.ts +++ b/__tests__/setup-dotnet.test.ts @@ -77,6 +77,12 @@ describe('setup-dotnet tests', () => { expect(debugSpy).toHaveBeenCalledWith(expectedDebugMessage); expect(existsSyncSpy).toHaveBeenCalled(); expect(infoSpy).toHaveBeenCalledWith(expectedInfoMessage); + expect(infoSpy).toHaveBeenCalledWith( + expect.stringMatching(/^##\[add-matcher\](.+)csc\.json$/) + ); + expect(infoSpy).toHaveBeenCalledWith( + expect.stringMatching(/^##\[add-matcher\](.+)dotnet-format\.json$/) + ); }); it('should fail the action if quality is supplied but its value is not supported', async () => {