mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(monorepo/server): fix imports for becca mocking
This commit is contained in:
parent
b0e97856bd
commit
3ddc8e5e7b
@ -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", () => {
|
||||||
|
@ -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;
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
@ -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 {
|
Loading…
x
Reference in New Issue
Block a user