mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-01-19 06:41:44 +07:00
test: add unit test
This commit is contained in:
parent
16e40a26d7
commit
91e9a0a11a
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user