Skip to content

Commit 4852744

Browse files
committed
test: add unit test
1 parent c6f6323 commit 4852744

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

__tests__/setup-dotnet.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ describe('setup-dotnet tests', () => {
7777
expect(debugSpy).toHaveBeenCalledWith(expectedDebugMessage);
7878
expect(existsSyncSpy).toHaveBeenCalled();
7979
expect(infoSpy).toHaveBeenCalledWith(expectedInfoMessage);
80+
expect(infoSpy).toHaveBeenCalledWith(
81+
expect.stringMatching(/^##\[add-matcher\](.+)csc\.json$/)
82+
);
83+
expect(infoSpy).toHaveBeenCalledWith(
84+
expect.stringMatching(/^##\[add-matcher\](.+)dotnet-format\.json$/)
85+
);
8086
});
8187

8288
it('should fail the action if quality is supplied but its value is not supported', async () => {

0 commit comments

Comments
 (0)