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
varchai=require('chai');varexpect=chai.expect;varjsPath=require("jspath");describe('jspath',function(){it('array',function(){varobj={a: [{b: 1,c: {b: 2}},{n: 2}]};expect(obj.a).to.have.length(2);varb=jsPath.apply("..*.b",obj);expect(b).to.have.length(2);expect(obj.a).to.have.length(2,'jspath does not modify the input: '+JSON.stringify(obj.a,null,'\t'));});});
The text was updated successfully, but these errors were encountered:
Please see attached image
Suite:
The text was updated successfully, but these errors were encountered: