ANW-20 hurl HTTP contract-test harness
This commit is contained in:
parent
ec650e6c66
commit
b4a33abd71
50 changed files with 415 additions and 2 deletions
8
tests/hurl/notes/get_one_no_frontmatter.hurl
Normal file
8
tests/hurl/notes/get_one_no_frontmatter.hurl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# A note without a frontmatter block still serves; frontmatter is {}.
|
||||
GET {{host}}/notes/no-frontmatter.md
|
||||
HTTP 200
|
||||
[Asserts]
|
||||
jsonpath "$.path" == "no-frontmatter.md"
|
||||
jsonpath "$.frontmatter" exists
|
||||
jsonpath "$.frontmatter.tags" not exists
|
||||
jsonpath "$.body" contains "no frontmatter block"
|
||||
Loading…
Add table
Add a link
Reference in a new issue