This commit is contained in:
Josh Soref 2026-03-22 12:51:00 +08:00 committed by GitHub
commit c62c9884ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -97,7 +97,7 @@ describe('setup-go', () => {
getManifestSpy = jest.spyOn(tc, 'getManifestFromRepo');
getAllVersionsSpy = jest.spyOn(im, 'getManifest');
// httm
// httpm
httpmGetJsonSpy = jest.spyOn(httpm.HttpClient.prototype, 'getJson');
// io
@ -152,7 +152,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';
@ -550,7 +550,7 @@ describe('setup-go', () => {
expect(added).toBeFalsy();
});
it('adds bin if dir not exists', async () => {
it('adds bin if dir does not exist', async () => {
whichSpy.mockImplementation(async () => {
return '/usr/local/go/bin/go';
});
@ -762,7 +762,7 @@ describe('setup-go', () => {
);
});
it('fallback to dist if version is not found in manifest', async () => {
it('fall back to dist if version is not found in manifest', async () => {
os.platform = 'linux';
os.arch = 'x64';
@ -799,7 +799,7 @@ describe('setup-go', () => {
expect(cnSpy).toHaveBeenCalledWith(`::add-path::${expPath}${osm.EOL}`);
});
it('fallback to dist if manifest is not available', async () => {
it('fall back to dist if manifest is not available', async () => {
os.platform = 'linux';
os.arch = 'x64';