You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to resolve the below issues , please help :-
1.) no-undef ('describe' is not defined.)
no-undef ('it' is not defined.)
link is here :- http://eslint.org/docs/rules/no-undef
issue coming in this code :-
describe('sendgrid request is executed',()=>{it(' its response should have executed successfully ',(done)=>{models.college.school('tUfzJg7U',{abhs: {college: 'xyz@rediffmail.com',},},(err,body,response)=>{expect(response.statusCode).to.equal(202);expect(response.statusMessage).to.equal('Accepted');expect('body').to.exist;done();});});});
2.) no-unused-expressions (Expected an assignment or function call and instead saw an expression)
link is here:- http://eslint.org/docs/rules/no-unused-expressions
issue coming in the below code at line having
expect('body').to.exist;
describe('sendgrid request is executed',()=>{it(' its response should have executed successfully ',(done)=>{models.college.school('b7U',{from: {school: 'abcd@gmail.com',},},(err,body,response)=>{expect(response.statusCode).to.equal(202);expect(response.statusMessage).to.equal('Accepted');expect('body').to.exist;done();});});});
The text was updated successfully, but these errors were encountered:
For the second point @divya3103 Please note I think there is a possible difference of opinion and we will need to raise an issue @ https://github.com/chaijs/chai
I am unable to resolve the below issues , please help :-
1.) no-undef ('describe' is not defined.)
no-undef ('it' is not defined.)
link is here :- http://eslint.org/docs/rules/no-undef
issue coming in this code :-
2.) no-unused-expressions (Expected an assignment or function call and instead saw an expression)
link is here:- http://eslint.org/docs/rules/no-unused-expressions
issue coming in the below code at line having
expect('body').to.exist;
The text was updated successfully, but these errors were encountered: