Remove unneeded call

This commit is contained in:
Laurent Nguyen 2024-05-13 17:12:44 +02:00
parent aac97d2808
commit 4142d346da

View File

@ -32,8 +32,6 @@ import * as ViewModels from "../../../Contracts/ViewModels";
import { updateUserContext } from "../../../UserContext";
import Explorer from "../../Explorer";
jest.requireActual("Explorer/Controls/Editor/EditorReact");
jest.mock("Common/dataAccess/queryDocuments", () => ({
queryDocuments: jest.fn(() => ({
// Omit headers, because we can't mock a private field and we don't need to test it
@ -91,7 +89,7 @@ async function waitForComponentToPaint<P = unknown>(wrapper: ReactWrapper<P> | S
return newWrapper;
}
describe("Documents tab", () => {
describe("Documents tab (noSql API)", () => {
describe("buildQuery", () => {
it("should generate the right select query for SQL API", () => {
expect(buildQuery(false, "")).toContain("select");