use golang-dl release data

This commit is contained in:
Alif Rachmawadi
2019-09-05 13:09:55 +07:00
parent 595aed780b
commit 21620fff65
5 changed files with 10207 additions and 2496 deletions

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

View File

@ -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(() => {