expect.js library has been deprecated in favor of Chaijs.
Please migrate to the k6Chaijs library. The documentation below is retained for historical reasons.
expect(value) sets the value to be used in comparison by the next function in the chain.
|value||any||The value to be compared|