Fix coverage

This commit is contained in:
Shivam Mathur 2020-07-11 18:35:28 +05:30
parent 4aa42214b1
commit 66fa82fbca
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,8 @@ describe('Extension tests', () => {
expect(await extensions.getXdebugVersion('5.3')).toContain('2.2.7'); expect(await extensions.getXdebugVersion('5.3')).toContain('2.2.7');
expect(await extensions.getXdebugVersion('5.4')).toContain('2.4.1'); expect(await extensions.getXdebugVersion('5.4')).toContain('2.4.1');
expect(await extensions.getXdebugVersion('5.5')).toContain('2.5.5'); expect(await extensions.getXdebugVersion('5.5')).toContain('2.5.5');
expect(await extensions.getXdebugVersion('5.6')).toContain('2.5.5');
expect(await extensions.getXdebugVersion('7.0')).toContain('2.7.2');
expect(await extensions.getXdebugVersion('7.2')).toContain('2.9.6'); expect(await extensions.getXdebugVersion('7.2')).toContain('2.9.6');
}); });
it('checking addExtensionOnWindows', async () => { it('checking addExtensionOnWindows', async () => {

3
dist/index.js vendored
View File

@ -3520,7 +3520,10 @@ async function getXdebugVersion(version) {
case '5.4': case '5.4':
return '2.4.1'; return '2.4.1';
case '5.5': case '5.5':
case '5.6':
return '2.5.5'; return '2.5.5';
case '7.0':
return '2.7.2';
default: default:
return '2.9.6'; return '2.9.6';
} }