mirror of
https://gitea.com/actions/setup-node.git
synced 2025-12-14 04:31:34 +08:00
resolve comments
This commit is contained in:
@@ -11,7 +11,7 @@ import each from 'jest-each';
|
||||
|
||||
import * as main from '../src/main';
|
||||
import * as util from '../src/util';
|
||||
import OfficialBuilds from '../src/distibutions/official_builds/official_builds';
|
||||
import OfficialBuilds from '../src/distributions/official_builds/official_builds';
|
||||
|
||||
describe('main tests', () => {
|
||||
let inputs = {} as any;
|
||||
@@ -33,7 +33,7 @@ describe('main tests', () => {
|
||||
let findSpy: jest.SpyInstance;
|
||||
let isCacheActionAvailable: jest.SpyInstance;
|
||||
|
||||
let getNodeJsInfoSpy: jest.SpyInstance;
|
||||
let setupNodeJsSpy: jest.SpyInstance;
|
||||
|
||||
beforeEach(() => {
|
||||
inputs = {};
|
||||
@@ -70,8 +70,8 @@ describe('main tests', () => {
|
||||
// process.stderr.write('write:' + line + '\n');
|
||||
});
|
||||
|
||||
getNodeJsInfoSpy = jest.spyOn(OfficialBuilds.prototype, 'getNodeJsInfo');
|
||||
getNodeJsInfoSpy.mockImplementation(() => {});
|
||||
setupNodeJsSpy = jest.spyOn(OfficialBuilds.prototype, 'setupNodeJs');
|
||||
setupNodeJsSpy.mockImplementation(() => {});
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user