test: add unit test

This commit is contained in:
Nogic 2025-01-13 20:51:39 +09:00
parent 16e40a26d7
commit 91e9a0a11a

View File

@ -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 () => {