refactored test to seperate lts alias describe()

This commit is contained in:
La'Kaleigh Harris 2021-10-07 14:53:46 +00:00 committed by GitHub
parent 5b7f417c91
commit ab0d6af666

View file

@ -104,6 +104,7 @@ describe('setup-node', () => {
afterAll(async () => { afterAll(async () => {
console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions console.log('::stoptoken::'); // Re-enable executing of runner commands when running tests in actions
jest.restoreAllMocks();
}, 100000); }, 100000);
//-------------------------------------------------- //--------------------------------------------------
@ -597,7 +598,7 @@ describe('setup-node', () => {
`Resolved ${versionFile} as ${expectedVersionSpec}` `Resolved ${versionFile} as ${expectedVersionSpec}`
); );
}); });
});
describe('LTS version', () => { describe('LTS version', () => {
beforeEach(() => { beforeEach(() => {
os.platform = 'linux'; os.platform = 'linux';
@ -815,5 +816,4 @@ describe('setup-node', () => {
); );
}); });
}); });
});
}); });