mirror of
https://github.com/actions/setup-go
synced 2024-12-22 14:22:41 +00:00
fix debug lines in test
This commit is contained in:
parent
5547b9ed8d
commit
57452eb902
1 changed files with 3 additions and 3 deletions
|
@ -98,15 +98,15 @@ describe('setup-go', () => {
|
||||||
logSpy = jest.spyOn(core, 'info');
|
logSpy = jest.spyOn(core, 'info');
|
||||||
dbgSpy = jest.spyOn(core, 'debug');
|
dbgSpy = jest.spyOn(core, 'debug');
|
||||||
getSpy.mockImplementation(() => <im.IGoVersion[] | null>goJsonData);
|
getSpy.mockImplementation(() => <im.IGoVersion[] | null>goJsonData);
|
||||||
cnSpy.mockImplementation((line) => {
|
cnSpy.mockImplementation(line => {
|
||||||
// uncomment to debug
|
// uncomment to debug
|
||||||
// process.stderr.write('write:' + line + '\n');
|
// process.stderr.write('write:' + line + '\n');
|
||||||
});
|
});
|
||||||
logSpy.mockImplementation((line) => {
|
logSpy.mockImplementation(line => {
|
||||||
// uncomment to debug
|
// uncomment to debug
|
||||||
//process.stderr.write('log:' + line + '\n');
|
//process.stderr.write('log:' + line + '\n');
|
||||||
});
|
});
|
||||||
dbgSpy.mockImplementation((line) => {
|
dbgSpy.mockImplementation(msg => {
|
||||||
// uncomment to see debug output
|
// uncomment to see debug output
|
||||||
// process.stderr.write(msg + '\n');
|
// process.stderr.write(msg + '\n');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue