mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
18 lines
296 B
Markdown
18 lines
296 B
Markdown
```javascript run
|
|
input.test = "Hello World";
|
|
```
|
|
|
|
::input[test]
|
|
|
|
```http json
|
|
POST https://httpbin.org/post
|
|
|
|
{"input": "{{input.test}}"}
|
|
|
|
```
|
|
|
|
```javascript run,hidden
|
|
// Use chai's `expect`, `assert` or `should` to make assumptions
|
|
expect(response.body.json.input).to.equal("Hello World");
|
|
```
|