Skip to content

Commit

Permalink
tests: add validation snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Oct 13, 2023
1 parent 99d6323 commit 6591066
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions quartodoc/tests/__snapshots__/test_validation.ambr
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# serializer version: 1
# name: test_misplaced_kindpage
'''
Code:

quartodoc:
package: zzz
sections:
- kind: page


Error:
Configuration error for YAML:
- Missing field `path` for element 0 in the list for `sections`, which you need when setting `kind: page`.

'''
# ---
# name: test_missing_name_contents_2
'''
Code:

quartodoc:
package: zzz
sections:
- title: Section 1
- title: Section 2
contents:
- children: linked
- name: MdRenderer

Error:
Configuration error for YAML:
- Missing field `name` for element 0 in the list for `contents` located in element 1 in the list for `sections`

'''
# ---

0 comments on commit 6591066

Please sign in to comment.