mirror of
https://github.com/vale981/lack
synced 2025-03-04 17:01:41 -05:00
Use clack.test:localhost to test a lack app.
This commit is contained in:
parent
ac7e7eff66
commit
e98d629115
1 changed files with 2 additions and 2 deletions
|
@ -56,14 +56,14 @@
|
|||
`(200 nil (,(gethash "filename"
|
||||
(third (assoc "file" (request-body-parameters (make-request env)) :test #'string=))))))
|
||||
(multiple-value-bind (body status)
|
||||
(dex:post "http://localhost:4242/"
|
||||
(dex:post (localhost)
|
||||
:content
|
||||
`(("file" . ,(asdf:system-relative-pathname :lack #P"data/jellyfish.jpg"))))
|
||||
(is status 200)
|
||||
(is body "jellyfish.jpg"))
|
||||
|
||||
(multiple-value-bind (body status)
|
||||
(dex:post "http://localhost:4242/"
|
||||
(dex:post (localhost)
|
||||
:content
|
||||
`(("file" . ,(asdf:system-relative-pathname :lack #P"data/jellyfish.jpg"))))
|
||||
(is status 200)
|
||||
|
|
Loading…
Add table
Reference in a new issue