Initial RuneStone project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { fenceOpenText, headingMarkText } from "../src/lib/editor/headingMarks.ts";
|
||||
|
||||
test("heading marks match the heading level", () => {
|
||||
assert.equal(headingMarkText(1), "#");
|
||||
assert.equal(headingMarkText(3), "###");
|
||||
assert.equal(headingMarkText(6), "######");
|
||||
});
|
||||
|
||||
test("fence open marks include the language", () => {
|
||||
assert.equal(fenceOpenText(""), "```");
|
||||
assert.equal(fenceOpenText("js"), "```js");
|
||||
assert.equal(fenceOpenText(" pp "), "```pp");
|
||||
});
|
||||
Reference in New Issue
Block a user