mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-12 07:01:12 +00:00
removed redundant test
This commit is contained in:
parent
12a17b4e01
commit
caf9b24230
2 changed files with 2 additions and 16 deletions
|
@ -577,20 +577,6 @@ describe('setup-node', () => {
|
|||
expect(parseNodeVersionSpy).toHaveBeenCalledTimes(0);
|
||||
});
|
||||
|
||||
it('warns if node-version and node-version-file are provided', async () => {
|
||||
//Arrange
|
||||
inputs['node-version'] = '12';
|
||||
inputs['node-version-file'] = '__tests__/data/.nvmrc';
|
||||
// Act
|
||||
await main.run();
|
||||
|
||||
// Assert
|
||||
expect(warningSpy).toHaveBeenCalledTimes(1);
|
||||
expect(warningSpy).toHaveBeenCalledWith(
|
||||
`Both node-version and node-version-file inputs are specified, only node-version will be used`
|
||||
);
|
||||
});
|
||||
|
||||
it('reads node-version-file if provided', async () => {
|
||||
// Arrange
|
||||
const versionSpec = 'v14';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue