Skip to content

Commit 9dcbead

Browse files
committed
Fix broken tests
1 parent ff4b58f commit 9dcbead

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/smoke/project/project-book.test.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ const outDir = "_book";
5858
const bookProjDir = docs("project/book");
5959
const bookOutDir = join(bookProjDir, outDir);
6060

61+
const bookPdfDir = join(bookOutDir, "book-pdf");
6162
const verifyPdfBook: Verify[] = [
62-
fileExists(join(bookOutDir, "book.pdf")),
63-
directoryEmptyButFor(bookOutDir, ["book.pdf"]),
63+
fileExists(join(bookPdfDir, "book.pdf")),
64+
directoryEmptyButFor(bookPdfDir, ["book.pdf"]),
6465
];
6566
testQuartoCmd(
6667
"render",
@@ -75,9 +76,10 @@ testQuartoCmd(
7576
},
7677
);
7778

79+
const bookDocxDir = join(bookOutDir, "book-docx");
7880
const verifyDocxBook: Verify[] = [
79-
fileExists(join(bookOutDir, "book.docx")),
80-
directoryEmptyButFor(bookOutDir, ["book.docx"]),
81+
fileExists(join(bookDocxDir, "book.docx")),
82+
directoryEmptyButFor(bookDocxDir, ["book.docx"]),
8183
];
8284
testQuartoCmd(
8385
"render",
@@ -92,9 +94,10 @@ testQuartoCmd(
9294
},
9395
);
9496

97+
const bookEpubDir = join(bookOutDir, "book-epub");
9598
const verifyEpubBook: Verify[] = [
96-
fileExists(join(bookOutDir, "book.epub")),
97-
directoryEmptyButFor(bookOutDir, ["book.epub"]),
99+
fileExists(join(bookEpubDir, "book.epub")),
100+
directoryEmptyButFor(bookEpubDir, ["book.epub"]),
98101
];
99102
testQuartoCmd(
100103
"render",

0 commit comments

Comments
 (0)