mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
30 lines
412 B
Plaintext
30 lines
412 B
Plaintext
meta {
|
|
name: getQueryString
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping?page=1&limit=10&sort=desc
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
params:query {
|
|
page: 1
|
|
limit: 10
|
|
sort: desc
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
res.body: eq pong
|
|
}
|
|
|
|
tests {
|
|
test("req.getQueryString()", function() {
|
|
const queryString = req.getQueryString();
|
|
expect(queryString).to.equal("page=1&limit=10&sort=desc");
|
|
});
|
|
}
|