-
-
Notifications
You must be signed in to change notification settings - Fork 752
Closed
Description
How to write assertion for REST module ?
Feature('Api');
Scenario('test something', (I) => {
I.sendGetRequest('/styles/123').then((response) => {
response.status.should.eql(200);
response.data.styleId.should.eql('123');
});
});I got :
(node:8692) UnhandledPromiseRejectionWarning: TypeError: **Cannot read property 'eql' of undefined**
Should i require some package ?
I try to reproduce the tests here : https://github.com/Codeception/CodeceptJS/blob/master/test/rest/REST_test.js#L42
Metadata
Metadata
Assignees
Labels
No labels