mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Run Prettier on installer.test.ts
This commit is contained in:
parent
b57469b036
commit
4d5f2b0b14
@ -69,7 +69,7 @@ describe('installer tests', () => {
|
|||||||
await getDotnet('3.1', 'x86');
|
await getDotnet('3.1', 'x86');
|
||||||
var directory = fs
|
var directory = fs
|
||||||
.readdirSync(path.join(toolDir, 'sdk'))
|
.readdirSync(path.join(toolDir, 'sdk'))
|
||||||
.filter(fn => fn.startsWith('3.1.'))
|
.filter(fn => fn.startsWith('3.1.'));
|
||||||
expect(directory.length > 0).toBe(true);
|
expect(directory.length > 0).toBe(true);
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
expect(fs.existsSync(path.join(toolDir, 'dotnet.exe'))).toBe(true);
|
expect(fs.existsSync(path.join(toolDir, 'dotnet.exe'))).toBe(true);
|
||||||
@ -142,6 +142,9 @@ function normalizeFileContents(contents: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getDotnet(version: string, architecture: string): Promise<void> {
|
async function getDotnet(version: string, architecture: string): Promise<void> {
|
||||||
const dotnetInstaller = new installer.DotnetCoreInstaller(version, architecture);
|
const dotnetInstaller = new installer.DotnetCoreInstaller(
|
||||||
|
version,
|
||||||
|
architecture
|
||||||
|
);
|
||||||
await dotnetInstaller.installDotnet();
|
await dotnetInstaller.installDotnet();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user