Skip to content

js assertion does not support .every() method #371

@pjotal

Description

@pjotal
### GET Request with query params
GET http://jsonplaceholder.typicode.com/comments?postId=1

?? status == 200
?? js response.parsedBody.length > 0
?? js response.parsedBody.every(it => it.postId == 1)

in the example above, even though the syntax for the .every() is correct, this assertion fails with the following error: SyntaxError: Unexpected token ';'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions