mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-16 04:11:29 +00:00
24 lines
357 B
Plaintext
24 lines
357 B
Plaintext
meta {
|
|
name: getPathParam
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/:pathParam
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
params:path {
|
|
pathParam: ping
|
|
}
|
|
|
|
tests {
|
|
test("req.getPathParams()", function() {
|
|
const pathParams = req.getPathParams();
|
|
expect(pathParams[0].name).to.equal('pathParam');
|
|
expect(pathParams[0].value).to.equal('ping');
|
|
});
|
|
}
|