mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
Fix formating
This commit is contained in:
parent
82e49b01e9
commit
9d11520b50
1 changed files with 7 additions and 5 deletions
|
@ -441,7 +441,7 @@ describe('setup-go', () => {
|
||||||
return '/Users/testuser/go';
|
return '/Users/testuser/go';
|
||||||
});
|
});
|
||||||
|
|
||||||
mkdirpSpy.mockImplementation(async () => { });
|
mkdirpSpy.mockImplementation(async () => {});
|
||||||
existsSpy.mockImplementation(path => {
|
existsSpy.mockImplementation(path => {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
@ -452,7 +452,7 @@ describe('setup-go', () => {
|
||||||
expect(logSpy).toHaveBeenCalledWith(`Added go to the path`);
|
expect(logSpy).toHaveBeenCalledWith(`Added go to the path`);
|
||||||
expect(logSpy).toHaveBeenCalledWith(`Added GOBIN to the path`);
|
expect(logSpy).toHaveBeenCalledWith(`Added GOBIN to the path`);
|
||||||
|
|
||||||
let expPath = "/Users/testuser/go/bin";
|
let expPath = '/Users/testuser/go/bin';
|
||||||
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);
|
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -468,17 +468,19 @@ describe('setup-go', () => {
|
||||||
return '/Users/testuser/go';
|
return '/Users/testuser/go';
|
||||||
});
|
});
|
||||||
|
|
||||||
mkdirpSpy.mockImplementation(async () => { });
|
mkdirpSpy.mockImplementation(async () => {});
|
||||||
existsSpy.mockImplementation(path => {
|
existsSpy.mockImplementation(path => {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
await main.run();
|
await main.run();
|
||||||
|
|
||||||
expect(logSpy).toHaveBeenCalledWith(`Setup go stable version spec undefined`);
|
expect(logSpy).toHaveBeenCalledWith(
|
||||||
|
`Setup go stable version spec undefined`
|
||||||
|
);
|
||||||
expect(logSpy).toHaveBeenCalledWith(`Added GOBIN to the path`);
|
expect(logSpy).toHaveBeenCalledWith(`Added GOBIN to the path`);
|
||||||
|
|
||||||
let expPath = "/Users/testuser/go/bin";
|
let expPath = '/Users/testuser/go/bin';
|
||||||
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);
|
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue