Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed May 30, 2022
1 parent e363a60 commit 9e7825d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1661,22 +1661,22 @@ 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, [])
.then(parseXmlManifest)
.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);
});
});

Expand Down

0 comments on commit 9e7825d

Please # to comment.