Robustness and federation sync

This commit is contained in:
Zef Hemel
2023-07-30 11:30:01 +02:00
parent afa160d2c2
commit b584e2ef7e
11 changed files with 264 additions and 110 deletions
+2 -4
View File
@@ -1,8 +1,7 @@
import { renderToText } from "./tree.ts";
import wikiMarkdownLang from "../../common/markdown_parser/parser.ts";
import { assert, assertEquals } from "../../test_deps.ts";
import { parse } from "../../common/markdown_parser/parse_tree.ts";
import { removeQueries } from "./query.ts";
import { parseMarkdown } from "$sb/lib/test_utils.ts";
const queryRemovalTest = `
# Heading
@@ -14,8 +13,7 @@ End
`;
Deno.test("White out queries", () => {
const lang = wikiMarkdownLang([]);
const mdTree = parse(lang, queryRemovalTest);
const mdTree = parseMarkdown(queryRemovalTest);
removeQueries(mdTree);
const text = renderToText(mdTree);
// Same length? We should be good