mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-18 18:29:19 +00:00
chore: Update Bruno tests (#473)
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
meta {
|
||||
name: get one card from a set
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/cards/swsh3
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: get list of sets
|
||||
name: Get a list of sets
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
@ -20,4 +20,6 @@ query {
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body[0].id: eq swsh3
|
||||
res.body.length: eq 1
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
meta {
|
||||
name: get a set
|
||||
name: Get a set
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
@ -12,4 +12,5 @@ get {
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body.id: eq swsh3
|
||||
}
|
16
.bruno/sets/get-one-card-from-a-set.bru
Normal file
16
.bruno/sets/get-one-card-from-a-set.bru
Normal file
@ -0,0 +1,16 @@
|
||||
meta {
|
||||
name: Get one card from a set
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/v2/en/sets/swsh3/136
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 200
|
||||
res.body.id: eq swsh3-136
|
||||
}
|
Reference in New Issue
Block a user