mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
use golang-dl release data
This commit is contained in:
10196
__tests__/data/golang-dl.json
Normal file
10196
__tests__/data/golang-dl.json
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -43,9 +43,10 @@ describe('installer tests', () => {
|
||||
|
||||
describe('the latest release of a go version', () => {
|
||||
beforeEach(() => {
|
||||
nock('https://api.github.com')
|
||||
.get('/repos/golang/go/git/refs/tags')
|
||||
.replyWithFile(200, path.join(dataDir, 'golang-tags.json'));
|
||||
nock('https://golang.org')
|
||||
.get('/dl/')
|
||||
.query({mode: 'json', include: 'all'})
|
||||
.replyWithFile(200, path.join(dataDir, 'golang-dl.json'));
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
Reference in New Issue
Block a user