Skip to content

Commit f347c29

Browse files
test: add end-to-end epub test for structured subject metadata
Verifies that the consolidated subject schema in document-metadata.yml correctly renders structured subject values (text/authority/term) into EPUB3 OPF metadata.
1 parent 2073b05 commit f347c29

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Test
3+
subject:
4+
text: "Science"
5+
authority: "BISAC"
6+
term: "SCI000000"
7+
format: epub
8+
_quarto:
9+
tests:
10+
epub:
11+
ensureEpubFileRegexMatches:
12+
- path: EPUB/content.opf
13+
regexes:
14+
- ['dc:subject id="subject-1">Science</dc:subject>', 'property="authority">BISAC', 'property="term">SCI000000']
15+
- []
16+
---
17+
18+
Test structured subject metadata in epub output.

0 commit comments

Comments
 (0)