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
it('should call response.header with expected arguments',function(){letresponse=chai.spy.object(['header']);letresponseBuilder=newResponseBuilder(response);responseBuilder.addHeaderByKeyValue('Access-Control-Allow-Origin','*').build({});expect(response.header).to.have.been.called.with({'Access-Control-Allow-Origin': '*'});});
It yields the below error:
AssertionError: expected { Spy 'object.header', 1 call } to have been called with [ Array(1) ]
This is not particularly helpful in seeing where the assertion actually failed, whilst the above error is correct, is there any mechanism or switch to make this more 'verbose'? If not, could this be a feature request?
The text was updated successfully, but these errors were encountered:
When the following is not satisfied:
It yields the below error:
AssertionError: expected { Spy 'object.header', 1 call } to have been called with [ Array(1) ]
This is not particularly helpful in seeing where the assertion actually failed, whilst the above error is correct, is there any mechanism or switch to make this more 'verbose'? If not, could this be a feature request?
The text was updated successfully, but these errors were encountered: