3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-25 11:39:32 +01:00

chore: run prettier

This commit is contained in:
Jef LeCompte 2022-06-30 09:57:00 -07:00
parent 1c48dc5a9e
commit 4096f07b51
No known key found for this signature in database
GPG key ID: 7F5BA322B5DC170C

View file

@ -588,7 +588,10 @@ describe('setup-node', () => {
it('reads node-version-file if provided (package.json, volta)', async () => { it('reads node-version-file if provided (package.json, volta)', async () => {
// Arrange // Arrange
const versionFile = 'package.json'; const versionFile = 'package.json';
const versionSpec = fs.readFileSync(path.join(__dirname, 'data', versionFile), 'utf8'); const versionSpec = fs.readFileSync(
path.join(__dirname, 'data', versionFile),
'utf8'
);
const expectedVersionSpec = '16.15.1'; const expectedVersionSpec = '16.15.1';
process.env['GITHUB_WORKSPACE'] = path.join(__dirname, 'data'); process.env['GITHUB_WORKSPACE'] = path.join(__dirname, 'data');
inputs['node-version-file'] = versionFile; inputs['node-version-file'] = versionFile;