mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 21:53:48 +00:00
tests
This commit is contained in:
parent
19df1001b0
commit
f40797d717
7 changed files with 295 additions and 78 deletions
|
@ -679,7 +679,8 @@ describe('NightlyNodejs', () => {
|
|||
mirrorURL: '', versionSpec: '18.0.0-nightly', arch: 'x64',
|
||||
checkLatest: false,
|
||||
stable: false
|
||||
}; const nightlyNode = new TestNightlyNodejs(nodeInfo);
|
||||
};
|
||||
const nightlyNode = new TestNightlyNodejs(nodeInfo);
|
||||
|
||||
const distributionUrl = nightlyNode.getDistributionUrlPublic();
|
||||
|
||||
|
@ -688,8 +689,12 @@ describe('NightlyNodejs', () => {
|
|||
});
|
||||
|
||||
it('falls back to default distribution URL if mirror URL is undefined', async () => {
|
||||
const nodeInfo: NodeInputs = { nodeVersion: '18.0.0-nightly', architecture: 'x64', platform: 'linux' };
|
||||
const nightlyNode = new TestNightlyNodejs(nodeInfo);
|
||||
const nodeInfo: NodeInputs = {
|
||||
mirrorURL: '', versionSpec: '18.0.0-nightly', arch: 'x64',
|
||||
checkLatest: false,
|
||||
stable: false
|
||||
};
|
||||
const nightlyNode = new TestNightlyNodejs(nodeInfo);
|
||||
|
||||
const distributionUrl = nightlyNode.getDistributionUrlPublic();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue