Skip to content

Commit 2d840ac

Browse files
claude: update typst test regexes to expect / prefix on brand logo paths
Brand logo paths in Typst image() calls now have a leading / since they are resolved as project-absolute paths. Update all 29 affected test regex patterns accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent af08511 commit 2d840ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+44
-44
lines changed

tests/docs/smoke-all/brand/brand-mode/brand-logo-alt-override-dark.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ _quarto:
4747
typst:
4848
ensureTypstFileRegexMatches:
4949
-
50-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("moon-face\.png", width: 1\.5in, alt: "MOON"\)\)'
50+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/moon-face\.png", width: 1\.5in, alt: "MOON"\)\)'
5151
-
5252
- 'background.*sun-face\.png'
5353
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-alt-override.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _quarto:
4646
typst:
4747
ensureTypstFileRegexMatches:
4848
-
49-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in, alt: "SUN"\)\)'
49+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in, alt: "SUN"\)\)'
5050
-
5151
- 'background.*moon-face\.png'
5252
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-alt.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _quarto:
3939
typst:
4040
ensureTypstFileRegexMatches:
4141
-
42-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in, alt: "sun face"\)\)'
42+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in, alt: "sun face"\)\)'
4343
-
4444
- 'background.*moon-face\.png'
4545
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-dark.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _quarto:
3939
typst:
4040
ensureTypstFileRegexMatches:
4141
-
42-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("moon-face\.png", width: 1\.5in, alt: "moon face"\)\)'
42+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/moon-face\.png", width: 1\.5in, alt: "moon face"\)\)'
4343
-
4444
- 'background.*sun-face\.png'
4545
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-image-path-alt.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _quarto:
3939
typst:
4040
ensureTypstFileRegexMatches:
4141
-
42-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in, alt: "Sun face image"\)\)'
42+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in, alt: "Sun face image"\)\)'
4343
-
4444
- 'background.*moon-face\.png'
4545
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-image-path-only.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _quarto:
3535
typst:
3636
ensureTypstFileRegexMatches:
3737
-
38-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in\)\)'
38+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in\)\)'
3939
-
4040
- 'background.*moon-face\.png'
4141
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-large.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _quarto:
3232
typst:
3333
ensureTypstFileRegexMatches:
3434
-
35-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in\)\)'
35+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in\)\)'
3636
-
3737
- 'background.*moon-face\.png'
3838
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-light.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _quarto:
3939
typst:
4040
ensureTypstFileRegexMatches:
4141
-
42-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in, alt: "sun face"\)\)'
42+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in, alt: "sun face"\)\)'
4343
-
4444
- 'background.*moon-face\.png'
4545
---

tests/docs/smoke-all/brand/brand-mode/brand-logo-missing-mode.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ _quarto:
3030
typst:
3131
ensureTypstFileRegexMatches:
3232
-
33-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in\)\)'
33+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in\)\)'
3434
---
3535

3636
## Here we go

tests/docs/smoke-all/brand/brand-mode/brand-logo-mixed-paths.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _quarto:
3535
typst:
3636
ensureTypstFileRegexMatches:
3737
-
38-
- 'background: align\(left\+top, box\(inset: 0.75in, image\("sun-face\.png", width: 1\.5in\)\)'
38+
- 'background: align\(left\+top, box\(inset: 0.75in, image\("/sun-face\.png", width: 1\.5in\)\)'
3939
-
4040
- 'background.*moon-face\.png'
4141
---

0 commit comments

Comments
 (0)