Skip to content

Commit

Permalink
docs: remove test utilities in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
fzn0x authored Jul 16, 2024
1 parent 90e28b5 commit 14ae8a4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,9 @@ const res = await hypfRequest.get(
}
)

const response2 = res.clone()
const res2 = res.clone()

expect(res).to.be.an.instanceOf(Response)
expect(response2).to.be.an.instanceOf(Response)
expect(await res.json()).to.be.an.instanceOf(Object)
expect(await response2.json()).to.be.an.instanceOf(Object)
console.log(res2)
```

## Request Cloning & Dry Run
Expand All @@ -196,8 +193,7 @@ const req = await hypfRequest.get(

const req2 = req.clone()

expect(req).to.be.an.instanceOf(Request)
expect(req2).to.be.an.instanceOf(Request)
console.log(req2)
```

## Hooks
Expand Down

0 comments on commit 14ae8a4

Please sign in to comment.