Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback for “Testing” #211

Open
fbrunet99 opened this issue Jan 10, 2025 · 0 comments
Open

Feedback for “Testing” #211

fbrunet99 opened this issue Jan 10, 2025 · 0 comments

Comments

@fbrunet99
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant