removed redundant test

This commit is contained in:
La'Kaleigh Harris 2021-11-11 18:56:40 +00:00 committed by GitHub
parent 12a17b4e01
commit caf9b24230
2 changed files with 2 additions and 16 deletions

View file

@ -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';