mirror of
https://github.com/actions/setup-go.git
synced 2025-11-10 05:46:55 +00:00
Compare commits
5 commits
386f3e2d8e
...
68ed3274a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68ed3274a2 | ||
|
|
98cae64d4a | ||
|
|
4b7aaecd5c | ||
|
|
2c2977fbc8 | ||
|
|
d4c9e7cb2c |
3 changed files with 5 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ describe('restoreCache', () => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should inform if cache hit is not occured', async () => {
|
it('should inform if cache hit is not occurred', async () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
hashFilesSpy.mockImplementation((somePath: string) => {
|
hashFilesSpy.mockImplementation((somePath: string) => {
|
||||||
return new Promise<string>(resolve => {
|
return new Promise<string>(resolve => {
|
||||||
|
|
@ -74,7 +74,7 @@ describe('restoreCache', () => {
|
||||||
expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`);
|
expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set output if cache hit is occured', async () => {
|
it('should set output if cache hit is occurred', async () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
hashFilesSpy.mockImplementation((somePath: string) => {
|
hashFilesSpy.mockImplementation((somePath: string) => {
|
||||||
return new Promise<string>(resolve => {
|
return new Promise<string>(resolve => {
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ describe('setup-go', () => {
|
||||||
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
|
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
|
||||||
getAllVersionsSpy = jest.spyOn(im, 'getManifest');
|
getAllVersionsSpy = jest.spyOn(im, 'getManifest');
|
||||||
|
|
||||||
// httm
|
// httpm
|
||||||
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
|
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
|
||||||
|
|
||||||
// io
|
// io
|
||||||
|
|
@ -146,7 +146,7 @@ describe('setup-go', () => {
|
||||||
expect(main.parseGoVersion(goVersionOutput)).toBe('1.16.6');
|
expect(main.parseGoVersion(goVersionOutput)).toBe('1.16.6');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can find 1.9.7 from manifest on osx', async () => {
|
it('can find 1.9.7 from manifest on macOS', async () => {
|
||||||
os.platform = 'darwin';
|
os.platform = 'darwin';
|
||||||
os.arch = 'x64';
|
os.arch = 'x64';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue