mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
test(release): read the fragment directory's notes too and skip directories
This commit is contained in:
1 parent
3f0463e2bf
commit
fd311693f6
2 files changed
+2
-2
No files matched your search
@@ -58,7 +58,7 @@ test("HTML comments hide references on one line or across several", () => {
|
||||
|
||||
test("annotating leaves every other byte in place", async () => {
|
||||
const dir = new URL("../release-notes/studio/", import.meta.url);
|
||||
for (const name of await readdir(dir)) {
|
||||
for (const name of (await readdir(dir, { recursive: true })).filter((entry) => entry.endsWith(".md"))) {
|
||||
const source = await readFile(new URL(name, dir), "utf8");
|
||||
assert.equal(annotateMarkdown(source, () => ""), source, name);
|
||||
assert.equal(annotateMarkdown(source, tag).replace(/<\d+>/g, ""), source, name);
|
||||
|
||||
@@ -62,7 +62,7 @@ test("an unresolved ref stays plain and is reported by code", async () => {
|
||||
|
||||
test("committed notes render unchanged when nothing is credited", async () => {
|
||||
const dir = new URL("../release-notes/studio/", import.meta.url);
|
||||
for (const name of await readdir(dir)) {
|
||||
for (const name of (await readdir(dir, { recursive: true })).filter((entry) => entry.endsWith(".md"))) {
|
||||
const source = await readFile(new URL(name, dir), "utf8");
|
||||
assert.equal(renderStudioNotes(source, new Map()), `${source.trimEnd()}\n`, name);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user