From 05f157e057cf70018205b96a941860f80b4e889a Mon Sep 17 00:00:00 2001 From: Arseniy Terekhin Date: Mon, 6 Nov 2023 11:18:40 +0300 Subject: [PATCH] test: better ts syntax --- src/test/suite/index.ts | 4 ++-- src/test/suite/resourceActionsSuite.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 90f99c6..751a5ab 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -1,6 +1,6 @@ import * as path from 'path'; -import * as Mocha from 'mocha'; -import * as glob from 'glob'; +import Mocha from 'mocha'; +import glob from 'glob'; export function run(): Promise { // Create the mocha test diff --git a/src/test/suite/resourceActionsSuite.ts b/src/test/suite/resourceActionsSuite.ts index 8a7ec53..6c78ca5 100644 --- a/src/test/suite/resourceActionsSuite.ts +++ b/src/test/suite/resourceActionsSuite.ts @@ -67,8 +67,8 @@ export function resourceActionsSuite(this: Suite): void { await commands.executeCommand('fossil.add', resource); await repository.updateModelState(); - assert(!repository.untrackedGroup.includesUri(uri)); - assert(repository.stagingGroup.includesUri(uri)); + assert.ok(!repository.untrackedGroup.includesUri(uri)); + assert.ok(repository.stagingGroup.includesUri(uri)); }).timeout(5000); test('fossil add untracked', async () => {