Skip to content

Commit dbb0d9f

Browse files
Copilotrzhao271
andauthored
Fix report issue command test setup
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent 4b9d57d commit dbb0d9f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/test/unittest/common/application/commands/reportIssueCommand.unit.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ suite('Report Issue Command', () => {
4141
});
4242

4343
test('Test if issue body is filled correctly when including all the settings', async () => {
44+
executeCommandStub.withArgs('workbench.action.openIssueReporter', sinon.match.any).resolves();
4445
await openReportIssue();
4546

4647
const issueTemplatePath = path.join(
@@ -61,8 +62,6 @@ suite('Report Issue Command', () => {
6162
);
6263
const expectedData = fs.readFileSync(userDataTemplatePath, 'utf8');
6364

64-
executeCommandStub.withArgs('workbench.action.openIssueReporter', sinon.match.any).resolves();
65-
6665
sinon.assert.calledOnceWithExactly(executeCommandStub, 'workbench.action.openIssueReporter', sinon.match.any);
6766

6867
const { issueBody, data } = executeCommandStub.getCall(0).args[1];

0 commit comments

Comments
 (0)