Skip to content

Commit

Permalink
Update dependencies (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlawson authored Jul 24, 2020
1 parent 70bda85 commit b6b526e
Show file tree
Hide file tree
Showing 6 changed files with 1,536 additions and 2,940 deletions.
10 changes: 5 additions & 5 deletions __tests__/setup-cmake.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ test('Download uses correct platform url', async () => {
platform: 'darwin',
arch: 'x86_64',
filetype: 'archive',
url: 'https://fakeaddress.com/cmake-Darwin-x86_64.tar.gz'
url: 'https://fakeaddress.com/cmake-Darwin-x86_64.tar.gz',
},
{
name: 'cmake-Linux-x86_64.tar.gz',
platform: 'linux',
arch: 'x86_64',
filetype: 'archive',
url: 'https://fakeaddress.com/cmake-Linux-x86_64.tar.gz'
url: 'https://fakeaddress.com/cmake-Linux-x86_64.tar.gz',
},
{
name: 'cmake-win32-x86_64.zip',
platform: 'win32',
arch: 'x86_64',
filetype: 'archive',
url: 'https://fakeaddress.com/cmake-win32-x86_64.zip'
}
url: 'https://fakeaddress.com/cmake-win32-x86_64.zip',
},
],
url: '',
draft: false,
prerelease: false
prerelease: false,
};
nock.disableNetConnect();
const darwin_nock = nock('https://fakeaddress.com')
Expand Down
10 changes: 5 additions & 5 deletions __tests__/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('When a version is needed', () => {
.replyWithFile(200, path.join(dataPath, 'releases.json'), {
'Content-Type': 'application/json',
Link:
'<...releases?page=2>; rel="next", <...releases?page=2>; rel="last"'
'<...releases?page=2>; rel="next", <...releases?page=2>; rel="last"',
});
// Releases file 2 contains version info for:
// 2.4.8, 2.6.4, 2.8.10.2, 2.8.12.2
Expand All @@ -30,7 +30,7 @@ describe('When a version is needed', () => {
.replyWithFile(200, path.join(dataPath, 'releases2.json'), {
'Content-Type': 'application/json',
Link:
'<...releases?page=1>; rel="prev", <...releases?page=2>; rel="last"'
'<...releases?page=1>; rel="prev", <...releases?page=2>; rel="last"',
});
});
afterEach(() => {
Expand Down Expand Up @@ -90,13 +90,13 @@ describe('When api token is required', () => {
beforeEach(() => {
nock('https://api.github.com', {
reqheaders: {
Authorization: 'token secret_token'
}
Authorization: 'token secret_token',
},
})
.get('/repos/Kitware/CMake/releases')
.query({ page: 1 })
.replyWithFile(200, path.join(dataPath, 'releases.json'), {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
});
nock('https://api.github.com')
.get('/repos/Kitware/CMake/releases')
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit b6b526e

Please sign in to comment.