mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +00:00
Fix unit-tests
This commit is contained in:
parent
68d994cec2
commit
92ff81074f
@ -22,6 +22,7 @@ const tempDir = path.join(__dirname, 'runner', 'temp2');
|
|||||||
|
|
||||||
describe('setup-dotnet tests', () => {
|
describe('setup-dotnet tests', () => {
|
||||||
let getMultilineInputSpy = jest.spyOn(core, 'getMultilineInput');
|
let getMultilineInputSpy = jest.spyOn(core, 'getMultilineInput');
|
||||||
|
let setOutputSpy = jest.spyOn(core, 'setOutput');
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
process.env.RUNNER_TOOL_CACHE = toolDir;
|
process.env.RUNNER_TOOL_CACHE = toolDir;
|
||||||
@ -66,8 +67,6 @@ describe('setup-dotnet tests', () => {
|
|||||||
it('Sets output with the installed version', async () => {
|
it('Sets output with the installed version', async () => {
|
||||||
const versions = ['3.1.201', '6.0.401'];
|
const versions = ['3.1.201', '6.0.401'];
|
||||||
|
|
||||||
let setOutputSpy = jest.spyOn(core, 'getMultilineInput');
|
|
||||||
|
|
||||||
getMultilineInputSpy.mockImplementation(() => {
|
getMultilineInputSpy.mockImplementation(() => {
|
||||||
return versions;
|
return versions;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user