Skip to content

Commit

Permalink
Extend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexravenna committed Sep 15, 2023
1 parent 89fee82 commit 4c6d59e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/publish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use(sinonChai);
describe('publish', () => {
let publishVSIXStub: SinonStub;
let publishOpenVSXStub: SinonStub;

before(() => {
publishVSIXStub = stub(vsce, 'publishVSIX').resolves();
publishOpenVSXStub = stub(ovsx, 'publish').resolves();
Expand All @@ -35,7 +36,8 @@ describe('publish', () => {
noVerify: true,
dependencies: true,
skipDuplicate: false,
preRelease: false
preRelease: false,
target: 'win32-x64 linux-x64'
});

expect(publishVSIXStub).to.have.been.calledOnceWithExactly('myExtensionFile', {
Expand All @@ -46,7 +48,8 @@ describe('publish', () => {
noVerify: true,
dependencies: true,
skipDuplicate: false,
preRelease: false
preRelease: false,
target: 'win32-x64 linux-x64'
});
});

Expand All @@ -58,7 +61,8 @@ describe('publish', () => {
extensionFile: 'myExtensionFile',
packagePath: 'myPackagePath',
pat: 'myPersonalAccessToken',
yarn: false
yarn: false,
target: 'win32-x64 linux-x64'
});

expect(publishOpenVSXStub).to.have.been.calledOnceWithExactly({
Expand All @@ -68,7 +72,9 @@ describe('publish', () => {
extensionFile: 'myExtensionFile',
packagePath: ['myPackagePath'],
pat: 'myPersonalAccessToken',
yarn: false
yarn: false,
targets: ['win32-x64', 'linux-x64'],
target: 'win32-x64 linux-x64'
});
});

Expand Down

0 comments on commit 4c6d59e

Please sign in to comment.