mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
it blocks in lowercase
This commit is contained in:
parent
7ba3c8c664
commit
96fa061ec2
1 changed files with 4 additions and 4 deletions
|
@ -348,7 +348,7 @@ describe('setup-node', () => {
|
||||||
expect(cnSpy).toHaveBeenCalledWith(`::error::${errMsg}${osm.EOL}`);
|
expect(cnSpy).toHaveBeenCalledWith(`::error::${errMsg}${osm.EOL}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Acquires specified architecture of node', async () => {
|
it('acquires specified architecture of node', async () => {
|
||||||
for (const {arch, version, osSpec} of [
|
for (const {arch, version, osSpec} of [
|
||||||
{arch: 'x86', version: '12.16.2', osSpec: 'win32'},
|
{arch: 'x86', version: '12.16.2', osSpec: 'win32'},
|
||||||
{arch: 'x86', version: '14.0.0', osSpec: 'win32'}
|
{arch: 'x86', version: '14.0.0', osSpec: 'win32'}
|
||||||
|
@ -555,7 +555,7 @@ describe('setup-node', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('node-version-file flag', () => {
|
describe('node-version-file flag', () => {
|
||||||
it('Not used if node-version is provided', async () => {
|
it('not used if node-version is provided', async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
inputs['node-version'] = '12';
|
inputs['node-version'] = '12';
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ describe('setup-node', () => {
|
||||||
expect(readFileSyncSpy).toHaveBeenCalledTimes(0);
|
expect(readFileSyncSpy).toHaveBeenCalledTimes(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Not used if node-version-file not provided', async () => {
|
it('not used if node-version-file not provided', async () => {
|
||||||
// Act
|
// Act
|
||||||
await main.run();
|
await main.run();
|
||||||
|
|
||||||
|
@ -574,7 +574,7 @@ describe('setup-node', () => {
|
||||||
expect(readFileSyncSpy).toHaveBeenCalledTimes(0);
|
expect(readFileSyncSpy).toHaveBeenCalledTimes(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Reads node-version-file if provided', async () => {
|
it('reads node-version-file if provided', async () => {
|
||||||
// Arrange
|
// Arrange
|
||||||
const versionSpec = 'v12';
|
const versionSpec = 'v12';
|
||||||
const versionFile = '.nvmrc';
|
const versionFile = '.nvmrc';
|
||||||
|
|
Loading…
Add table
Reference in a new issue