implement review comment

pull/793/head
mahabaleshwars 1 month ago
parent 78004efe52
commit a2551b2c1b

@ -698,6 +698,16 @@ describe('setup-go', () => {
it('sets an output for each exposed variable', () => { it('sets an output for each exposed variable', () => {
main.setGoEnvOutputs(goEnv); main.setGoEnvOutputs(goEnv);
expect(GO_ENV_OUTPUTS).toEqual([
'GOPATH',
'GOBIN',
'GOROOT',
'GOCACHE',
'GOMODCACHE',
'GOOS',
'GOARCH',
'GOTOOLDIR'
]);
for (const name of GO_ENV_OUTPUTS) { for (const name of GO_ENV_OUTPUTS) {
expect(setOutputSpy).toHaveBeenCalledWith(name, goEnv[name] ?? ''); expect(setOutputSpy).toHaveBeenCalledWith(name, goEnv[name] ?? '');
} }

Loading…
Cancel
Save