Skip to content

Commit

Permalink
Move editor tests to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Nov 1, 2024
1 parent 3504c86 commit 085404e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { describe, it, beforeEach } from "bun:test";
import { errorMsgTestId, errorTestId, typeaheadTestId } from "./CqlInput";
import { errorMsgTestId, errorTestId, typeaheadTestId } from "../CqlInput";
import { findByTestId, findByText, fireEvent } from "@testing-library/dom";
import { CqlClientService } from "../services/CqlService";
import { TestTypeaheadHelpers } from "../lang/typeaheadHelpersTest";
import { CqlClientService } from "../../services/CqlService";
import { TestTypeaheadHelpers } from "../../lang/typeaheadHelpersTest";
import { createEditor, ProsemirrorTestChain } from "jest-prosemirror";
import { createCqlPlugin } from "./editor/plugin";
import { createCqlPlugin } from "./plugin";
import { redo, undo } from "prosemirror-history";
import { bottomOfLine, topOfLine } from "./editor/commands";
import { bottomOfLine, topOfLine } from "./commands";
import { keymap } from "prosemirror-keymap";
import {
createProseMirrorTokenToDocumentMap,
docToQueryStr,
mapResult,
tokensToDoc,
toProseMirrorTokens,
} from "./editor/utils";
} from "./utils";
import { TextSelection } from "prosemirror-state";

const typeheadHelpers = new TestTypeaheadHelpers();
Expand Down Expand Up @@ -129,7 +129,7 @@ const selectPopoverOption = async (
await editor.press("Enter");
};

describe("CqlInput", () => {
describe("editor", () => {
beforeEach(() => {
document.body.innerHTML = "";
});
Expand Down

0 comments on commit 085404e

Please sign in to comment.