mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2026-02-03 09:55:13 +01:00
test(e2e): Bruno tests
This commit is contained in:
parent
a31cde1dd3
commit
fd94b80069
11 changed files with 165 additions and 38 deletions
16
demo-server/bruno-e2e/401 No Token.bru
Normal file
16
demo-server/bruno-e2e/401 No Token.bru
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
meta {
|
||||
name: 401 No Token
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:3000/api/protected
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
assert {
|
||||
res.status: eq 401
|
||||
res.headers['www-authenticate']: eq Bearer
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue