From 9e7825d6b9ef212659d1edc7a164d61a105f8e01 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Mon, 30 May 2022 14:28:02 +0200 Subject: [PATCH] fix: tests --- src/test/package.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/package.test.ts b/src/test/package.test.ts index 611bd60d..dc8eed0c 100644 --- a/src/test/package.test.ts +++ b/src/test/package.test.ts @@ -1661,14 +1661,14 @@ describe('toVsixManifest', () => { }); it('should add sponsor link property', () => { - const sponsorLink = 'https://foo.bar'; - const manifest = { + const sponsor = 'https://foo.bar'; + const manifest: Manifest = { name: 'test', publisher: 'mocha', version: '0.0.1', description: 'test extension', engines: Object.create(null), - sponsorLink, + sponsor, }; return _toVsixManifest(manifest, []) @@ -1676,7 +1676,7 @@ describe('toVsixManifest', () => { .then(result => { const properties = result.PackageManifest.Metadata[0].Properties[0].Property; const sponsorLinkProp = properties.find(p => p.$.Id === 'Microsoft.VisualStudio.Code.SponsorLink'); - assert.strictEqual(sponsorLinkProp?.$.Value, sponsorLink); + assert.strictEqual(sponsorLinkProp?.$.Value, sponsor); }); });