Array length assertion #289
-
Hi ! :) I know the way to do an assertion on array size const { spec } = require('pactum');
await spec()
.get('https://reqres.in/api/users')
.expectJsonLength('data', 6); But is there a way to do an assertion on minimal or maximal size of array ? const { spec } = require('pactum');
import { gte, lte, lt, gt } from "pactum-matchers"
await spec()
.get('https://reqres.in/api/users')
.expectJsonLength('data', lte(6)); Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
leelaprasadv
Sep 6, 2023
Replies: 1 comment
-
@fbruno93 Released in version 3.5.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fbruno93
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@fbruno93 Released in version 3.5.1
https://github.com/pactumjs/pactum/releases/tag/v3.5.1