feat: add javascript code block support (#13)

This commit is contained in:
Morten Olsen
2025-05-19 10:25:53 +02:00
parent bf14ef97b8
commit cef969dfd6
7 changed files with 186 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
```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");
```