Skip to content

Feedback for “Testing” #211

@fbrunet99

Description

@fbrunet99

The document doesn't have any context for completing a test.

First of all, there is no reference for the expect syntax. There are some examples for
' expect(a).to.be.a('string')

But what are the exact functions available. For example, what is the syntax for not null? expect(a).to.not.be.null()? expect(a).to.be.not.null()? expect(a).to.be.notNull()? None of those work. If this is the same syntax as chai or some other assertion tool, this needs to be specified.

Second, on the page "Tests and Script > Script > Response > Response Query", the function "res()" is described. It shows this usage:
res('order.total')

Trying this function in a script just gives the error "res is not defined". So am I supposed to import res? require res? This is not explained.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions