mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 11:31:07 +07:00
Update tests to accomodate for changes
This commit is contained in:
parent
8f71719d12
commit
6eb2af61b6
@ -102,8 +102,15 @@ describe('installer tests', () => {
|
|||||||
|
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* First time script would be called to
|
||||||
|
* install runtime, here we checking only the
|
||||||
|
* second one that installs actual SDK. i.e. 1
|
||||||
|
*/
|
||||||
|
const callIndex = 1;
|
||||||
|
|
||||||
const scriptArguments = (
|
const scriptArguments = (
|
||||||
getExecOutputSpy.mock.calls[0][1] as string[]
|
getExecOutputSpy.mock.calls[callIndex][1] as string[]
|
||||||
).join(' ');
|
).join(' ');
|
||||||
const expectedArgument = IS_WINDOWS
|
const expectedArgument = IS_WINDOWS
|
||||||
? `-Version ${inputVersion}`
|
? `-Version ${inputVersion}`
|
||||||
@ -185,8 +192,15 @@ describe('installer tests', () => {
|
|||||||
|
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* First time script would be called to
|
||||||
|
* install runtime, here we checking only the
|
||||||
|
* second one that installs actual SDK. i.e. 1
|
||||||
|
*/
|
||||||
|
const callIndex = 1;
|
||||||
|
|
||||||
const scriptArguments = (
|
const scriptArguments = (
|
||||||
getExecOutputSpy.mock.calls[0][1] as string[]
|
getExecOutputSpy.mock.calls[callIndex][1] as string[]
|
||||||
).join(' ');
|
).join(' ');
|
||||||
const expectedArgument = IS_WINDOWS
|
const expectedArgument = IS_WINDOWS
|
||||||
? `-Quality ${inputQuality}`
|
? `-Quality ${inputQuality}`
|
||||||
@ -218,8 +232,15 @@ describe('installer tests', () => {
|
|||||||
|
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* First time script would be called to
|
||||||
|
* install runtime, here we checking only the
|
||||||
|
* second one that installs actual SDK. i.e. 1
|
||||||
|
*/
|
||||||
|
const callIndex = 1;
|
||||||
|
|
||||||
const scriptArguments = (
|
const scriptArguments = (
|
||||||
getExecOutputSpy.mock.calls[0][1] as string[]
|
getExecOutputSpy.mock.calls[callIndex][1] as string[]
|
||||||
).join(' ');
|
).join(' ');
|
||||||
const expectedArgument = IS_WINDOWS
|
const expectedArgument = IS_WINDOWS
|
||||||
? `-Channel 6.0`
|
? `-Channel 6.0`
|
||||||
@ -252,8 +273,15 @@ describe('installer tests', () => {
|
|||||||
|
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* First time script would be called to
|
||||||
|
* install runtime, here we checking only the
|
||||||
|
* second one that installs actual SDK. i.e. 1
|
||||||
|
*/
|
||||||
|
const callIndex = 1;
|
||||||
|
|
||||||
const scriptArguments = (
|
const scriptArguments = (
|
||||||
getExecOutputSpy.mock.calls[0][1] as string[]
|
getExecOutputSpy.mock.calls[callIndex][1] as string[]
|
||||||
).join(' ');
|
).join(' ');
|
||||||
|
|
||||||
expect(scriptArguments).toContain(
|
expect(scriptArguments).toContain(
|
||||||
@ -283,8 +311,15 @@ describe('installer tests', () => {
|
|||||||
|
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* First time script would be called to
|
||||||
|
* install runtime, here we checking only the
|
||||||
|
* second one that installs actual SDK. i.e. 1
|
||||||
|
*/
|
||||||
|
const callIndex = 1;
|
||||||
|
|
||||||
const scriptArguments = (
|
const scriptArguments = (
|
||||||
getExecOutputSpy.mock.calls[0][1] as string[]
|
getExecOutputSpy.mock.calls[callIndex][1] as string[]
|
||||||
).join(' ');
|
).join(' ');
|
||||||
|
|
||||||
expect(scriptArguments).toContain(
|
expect(scriptArguments).toContain(
|
||||||
|
Loading…
Reference in New Issue
Block a user