mirror of
https://github.com/actions/setup-go.git
synced 2025-07-06 17:53:13 +08:00
Merge 98cae64d4a720e872b9162ca10c916117867dbd2 into 0aaccfd150d50ccaeb58ebd88d36e91967a5f35b
This commit is contained in:
commit
50cc829fc6
@ -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
|
||||
hashFilesSpy.mockImplementation((somePath: string) => {
|
||||
return new Promise<string>(resolve => {
|
||||
@ -74,7 +74,7 @@ describe('restoreCache', () => {
|
||||
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
|
||||
hashFilesSpy.mockImplementation((somePath: string) => {
|
||||
return new Promise<string>(resolve => {
|
||||
|
@ -92,7 +92,7 @@ describe('setup-go', () => {
|
||||
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
|
||||
getAllVersionsSpy = jest.spyOn(im, 'getManifest');
|
||||
|
||||
// httm
|
||||
// httpm
|
||||
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
|
||||
|
||||
// io
|
||||
@ -143,7 +143,7 @@ describe('setup-go', () => {
|
||||
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.arch = 'x64';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user