Files
bruno/packages/bruno-tests/collection/scripting/api/req/getPath.bru

19 lines
243 B
Plaintext

meta {
name: getPath
type: http
seq: 1
}
get {
url: {{host}}/api/users/123
body: none
auth: none
}
tests {
test("req.getPath()", function() {
const path = req.getPath();
expect(path).to.equal("/api/users/123");
});
}