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
My code uses hasOwnProperty to check for certain properties on this.query. In node 6.2, it no longer has this method (or as it seems with the following test case, no other methods). Here is a failing test case for this issue (this test is intended to be in /test/request/query.js):
it('should return an object with hasOwnProperty', function (){
var ctx = context({ url: '/?page=2' });
ctx.query.should.have.property('hasOwnProperty');
})
1 failing
1) ctx.query should return an object with hasOwnProperty:
TypeError: Cannot read property 'have' of undefined
at Context.<anonymous> (test/request/query.js:29:21)
This test passes on node v5.6.0
The text was updated successfully, but these errors were encountered:
My code uses
hasOwnProperty
to check for certain properties onthis.query
. In node 6.2, it no longer has this method (or as it seems with the following test case, no other methods). Here is a failing test case for this issue (this test is intended to be in/test/request/query.js
):This test passes on node v5.6.0
The text was updated successfully, but these errors were encountered: