mirror of
https://github.com/actions/setup-node
synced 2024-11-12 16:42:40 +00:00
chore: run prettier
This commit is contained in:
parent
f40b60859d
commit
9aa86428fe
2 changed files with 3 additions and 3 deletions
|
@ -592,7 +592,7 @@ describe('setup-node', () => {
|
||||||
inputs['node-version-file'] = 'volta';
|
inputs['node-version-file'] = 'volta';
|
||||||
|
|
||||||
existsSpy.mockImplementationOnce(
|
existsSpy.mockImplementationOnce(
|
||||||
input => input === path.join(__dirname, 'data', versionFile)
|
input => input === path.join(__dirname, 'data', versionFile)
|
||||||
);
|
);
|
||||||
// Act
|
// Act
|
||||||
await main.run();
|
await main.run();
|
||||||
|
@ -601,7 +601,7 @@ describe('setup-node', () => {
|
||||||
expect(existsSpy).toHaveBeenCalledTimes(1);
|
expect(existsSpy).toHaveBeenCalledTimes(1);
|
||||||
expect(existsSpy).toHaveReturnedWith(true);
|
expect(existsSpy).toHaveReturnedWith(true);
|
||||||
expect(logSpy).toHaveBeenCalledWith(
|
expect(logSpy).toHaveBeenCalledWith(
|
||||||
`Resolved ${versionFile} as ${expectedVersionSpec}`
|
`Resolved ${versionFile} as ${expectedVersionSpec}`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ function resolveVersionInput(): string {
|
||||||
version = JSON.parse(fs.readFileSync(versionFilePath, 'utf8')).volta.node;
|
version = JSON.parse(fs.readFileSync(versionFilePath, 'utf8')).volta.node;
|
||||||
} else {
|
} else {
|
||||||
version = installer.parseNodeVersionFile(
|
version = installer.parseNodeVersionFile(
|
||||||
fs.readFileSync(versionFilePath, 'utf8')
|
fs.readFileSync(versionFilePath, 'utf8')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue