mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-07-15 00:14:53 +01:00
Remove unneeded call
This commit is contained in:
parent
aac97d2808
commit
4142d346da
@ -32,8 +32,6 @@ import * as ViewModels from "../../../Contracts/ViewModels";
|
|||||||
import { updateUserContext } from "../../../UserContext";
|
import { updateUserContext } from "../../../UserContext";
|
||||||
import Explorer from "../../Explorer";
|
import Explorer from "../../Explorer";
|
||||||
|
|
||||||
jest.requireActual("Explorer/Controls/Editor/EditorReact");
|
|
||||||
|
|
||||||
jest.mock("Common/dataAccess/queryDocuments", () => ({
|
jest.mock("Common/dataAccess/queryDocuments", () => ({
|
||||||
queryDocuments: jest.fn(() => ({
|
queryDocuments: jest.fn(() => ({
|
||||||
// Omit headers, because we can't mock a private field and we don't need to test it
|
// 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;
|
return newWrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
describe("Documents tab", () => {
|
describe("Documents tab (noSql API)", () => {
|
||||||
describe("buildQuery", () => {
|
describe("buildQuery", () => {
|
||||||
it("should generate the right select query for SQL API", () => {
|
it("should generate the right select query for SQL API", () => {
|
||||||
expect(buildQuery(false, "")).toContain("select");
|
expect(buildQuery(false, "")).toContain("select");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user