chore(monorepo/server): fix imports for becca mocking

This commit is contained in:
Elian Doran 2025-04-18 12:43:19 +03:00
parent b0e97856bd
commit 3ddc8e5e7b
No known key found for this signature in database
5 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { note } from "../../../spec/support/becca_mocking.js"; import { note } from "../../test/becca_mocking.js";
import { renderSvgAttachment } from "./image.js"; import { renderSvgAttachment } from "./image.js";
describe("Image API", () => { describe("Image API", () => {

View File

@ -5,7 +5,7 @@ import BBranch from "../../../becca/entities/bbranch.js";
import SearchContext from "../search_context.js"; import SearchContext from "../search_context.js";
import dateUtils from "../../date_utils.js"; import dateUtils from "../../date_utils.js";
import becca from "../../../becca/becca.js"; import becca from "../../../becca/becca.js";
import { findNoteByTitle, note, NoteBuilder } from "../../../../spec/support/becca_mocking.js"; import { findNoteByTitle, note, NoteBuilder } from "../../../test/becca_mocking.js";
describe("Search", () => { describe("Search", () => {
let rootNote: any; let rootNote: any;

View File

@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach } from "vitest";
import ValueExtractor from "./value_extractor.js"; import ValueExtractor from "./value_extractor.js";
import becca from "../../becca/becca.js"; import becca from "../../becca/becca.js";
import SearchContext from "./search_context.js"; import SearchContext from "./search_context.js";
import { note } from "../../../spec/support/becca_mocking.js"; import { note } from "../../test/becca_mocking.js";
const dsc = new SearchContext(); const dsc = new SearchContext();

View File

@ -1,5 +1,5 @@
import { beforeEach, describe, expect, it, vi } from "vitest"; import { beforeEach, describe, expect, it, vi } from "vitest";
import { note, NoteBuilder } from "../../spec/support/becca_mocking.js"; import { note, NoteBuilder } from "../test/becca_mocking.js";
import becca from "../becca/becca.js"; import becca from "../becca/becca.js";
import BBranch from "../becca/entities/bbranch.js"; import BBranch from "../becca/entities/bbranch.js";
import BNote from "../becca/entities/bnote.js"; import BNote from "../becca/entities/bnote.js";

View File

@ -1,10 +1,10 @@
import BNote from "../../src/becca/entities/bnote.js"; import BNote from "../becca/entities/bnote.js";
import BBranch from "../../src/becca/entities/bbranch.js"; import BBranch from "../becca/entities/bbranch.js";
import BAttribute from "../../src/becca/entities/battribute.js"; import BAttribute from "../becca/entities/battribute.js";
import becca from "../../src/becca/becca.js"; import becca from "../becca/becca.js";
import randtoken from "rand-token"; import randtoken from "rand-token";
import type SearchResult from "../../src/services/search/search_result.js"; import type SearchResult from "../services/search/search_result.js";
import type { NoteRow, NoteType } from "../../src/becca/entities/rows.js"; import type { NoteRow, NoteType } from "@triliumnext/commons";
randtoken.generator({ source: "crypto" }); randtoken.generator({ source: "crypto" });
export function findNoteByTitle(searchResults: Array<SearchResult>, title: string): BNote | undefined { export function findNoteByTitle(searchResults: Array<SearchResult>, title: string): BNote | undefined {