Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Mar 7, 2024
1 parent d998b5a commit aa7d475
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ suite('Report Issue Command', () => {
);
const expectedData = fs.readFileSync(userDataTemplatePath, 'utf8');

const args: [string, { extensionId: string; issueBody: string, data: string }] = capture<
const args: [string, { extensionId: string; issueBody: string; data: string }] = capture<
AllCommands,
{ extensionId: string; issueBody: string, data: string }
{ extensionId: string; issueBody: string; data: string }
>(cmdManager.executeCommand).last();

verify(cmdManager.registerCommand(Commands.ReportIssue, anything(), anything())).once();
Expand All @@ -123,7 +123,6 @@ suite('Report Issue Command', () => {
const data = args[1].data;

Check failure on line 123 in src/test/common/application/commands/reportIssueCommand.unit.test.ts

View workflow job for this annotation

GitHub Actions / Lint

Use object destructuring
expect(issueBody).to.be.equal(expectedIssueBody);
expect(data).to.be.equal(expectedData);

});

test.only('Test if issue body is filled when only including settings which are explicitly set', async () => {
Expand Down Expand Up @@ -154,9 +153,9 @@ suite('Report Issue Command', () => {
);
const expectedData = fs.readFileSync(userDataTemplatePath, 'utf8');

const args: [string, { extensionId: string; issueBody: string, data: string }] = capture<
const args: [string, { extensionId: string; issueBody: string; data: string }] = capture<
AllCommands,
{ extensionId: string; issueBody: string, data: string }
{ extensionId: string; issueBody: string; data: string }
>(cmdManager.executeCommand).last();

verify(cmdManager.executeCommand('workbench.action.openIssueReporter', anything())).once();
Expand Down

0 comments on commit aa7d475

Please sign in to comment.