Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
FUSETOOLS2-2304: Change uitests code to match new rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
pospisilf committed Apr 29, 2024
1 parent 7ec554c commit e33b85f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/utils-test-project/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('utils-test-project.helloWorld', () => {
const disposable = vscode.commands.registerCommand('utils-test-project.helloWorld', async () => {
// The code you place here will be executed every time your command is executed
// Display a message box to the user
vscode.window.showInformationMessage('Hello World from Utils Test Project!');
await vscode.window.showInformationMessage('Hello World from Utils Test Project!');
});

context.subscriptions.push(disposable);
Expand Down
4 changes: 2 additions & 2 deletions test/utils-test-project/src/test/activitybar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('ActivityBar', function () {

it('non existing control', async function () {
try {
const item = await activityBar.getViewControl('abc', 5000);
const _item = await activityBar.getViewControl('abc', 5000);
}
catch (e: any) {
expect(e.toString()).contain('Could not find view control with name "abc"');
Expand All @@ -44,7 +44,7 @@ describe('ActivityBar', function () {

it('zero timeout', async function () {
try {
const control2 = await activityBar.getViewControl('Explorer', 0);
const _control2 = await activityBar.getViewControl('Explorer', 0);
}
catch (e: any) {
expect(e.toString()).contain("Cannot iterate more than 1 times.");
Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"lib": [
"ES2022"
],
"rootDir": "src",
"outDir": "out",
"resolveJsonModule": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"declaration": true,
"skipLibCheck": true
},
"include": [
"src",
"src"
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit e33b85f

Please sign in to comment.