Skip to content

Commit

Permalink
Switch to fixed getcomposer.org links
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Aug 18, 2020
1 parent 9bd0fdb commit 3543ed1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 969 deletions.
16 changes: 0 additions & 16 deletions __tests__/tools.test.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
import * as httpm from '@actions/http-client';
import * as tools from '../src/tools';

httpm.HttpClient.prototype.get = jest.fn().mockImplementation(() => {
return {
message: null,
readBody: jest.fn().mockImplementation(() => {
return JSON.stringify({
stable: [{path: '/composer-stable.phar'}],
preview: [{path: '/composer-preview.phar'}],
snapshot: [{path: '/composer.phar'}],
'1': [{path: '/composer-1.phar'}],
'2': [{path: '/composer-2.phar'}]
});
})
};
});

describe('Tools tests', () => {
it('checking parseToolVersion', async () => {
expect(await tools.getToolVersion('latest')).toBe('latest');
Expand Down
Loading

0 comments on commit 3543ed1

Please sign in to comment.