Remove as unknown as WorkspaceFolder

This commit is contained in:
Koen Vlaswinkel
2023-02-21 13:42:36 +01:00
parent fa5bad6946
commit 9b1ca5136e

View File

@@ -7,6 +7,7 @@ import { DirectoryResult } from "tmp-promise";
import * as tmp from "tmp-promise"; import * as tmp from "tmp-promise";
import "../../matchers/toEqualPath"; import "../../matchers/toEqualPath";
import { mockedObject } from "../utils/mocking.helpers";
describe("qltest-discovery", () => { describe("qltest-discovery", () => {
describe("discoverTests", () => { describe("discoverTests", () => {
@@ -34,10 +35,10 @@ describe("qltest-discovery", () => {
iFile = join(hDir, "i.ql"); iFile = join(hDir, "i.ql");
qlTestDiscover = new QLTestDiscovery( qlTestDiscover = new QLTestDiscovery(
{ mockedObject<WorkspaceFolder>({
uri: baseUri, uri: baseUri,
name: "My tests", name: "My tests",
} as unknown as WorkspaceFolder, }),
{ {
resolveTests() { resolveTests() {
return [dFile, eFile, iFile]; return [dFile, eFile, iFile];