Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Improve assertion flow #3

Open
k4m4 opened this issue Nov 16, 2019 · 0 comments
Open

Improve assertion flow #3

k4m4 opened this issue Nov 16, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@k4m4
Copy link
Contributor

k4m4 commented Nov 16, 2019

  • It would make sense (and greatly improve the 'testing flow') if .exists, .is, and .each could be chained to the .expr function:
await freddo('https://api.example.com')
      .status(200)
      .expr('.total_count').exists()
      .expr('.incomplete_results').is('boolean')
      .expr('.items.node_id').each(validator.isBase64)
      .ensure()
@k4m4 k4m4 added enhancement New feature or request good first issue Good for newcomers labels Nov 16, 2019
@carolstran carolstran added the help wanted Extra attention is needed label Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants