UNPKG

enzyme

Version:

JavaScript Testing utilities for React

1 lines 536 kB
{"version":"0.5.12","fields":[{"name":"title","boost":10},{"name":"body","boost":1}],"ref":"url","documentStore":{"store":{"CHANGELOG.html":["1.0.0","2015","3","chang","decemb","edit","log","offici","page","releas"],"CONTRIBUTING.html":["0.13","0.14","13","14","abov","add","adher","airbnb","alway","appreci","automat","befor","between","bit","both","browser","bug","build","cd","chang","check","choic","ci","clone","code","codebas","command","compliant","conflict","contribut","credit","current","depend","doc","docs:watch","edit","editor","enforc","environ","eslint","execut","extrem","fail","faster","feedback","file","first","fix","follow","fork","function","git","github","given","greatli","guid","guidelin","help","http://localhost:4000","https://github.com/airbnb/enzyme.git","includ","instal","lint","littl","local","machin","meet","npm","open","org","page","part","pass","pleas","plugin","port","pr","pull","push","react","react:13","react:14","enzyme","rebas","recommend","refresh","repo","request","resolv","run","same","see","server","set","simpl","sourc","specifi","start","step","style","styleguid","submit","switch","tdd","test","test:al","test:watch","up","updat","us","usual","version","want","watch","welcom","whatev","without","work","you'd"],"index.html":["0.13.x","0.14","0.14.x","1","3","achiev","addit","addon","allow","alreadi","api","assert","bar","bar').length).to.equal(3","bar=\"baz","bar`","basic","baz","both","button","call","chai","children","choic","classnam","classname=\"uniqu","click","compat","compon","componentdidmount","const","contain","contribut","current","depend","describ","describe('<foo","describe('<mycompon","describewithdom","describewithdom('<foo","dev","div","document","dom","easier","edit","ensur","equal","event","exampl","expect","expect(foo.prototype.componentdidmount.calledonce).to.be.tru","expect(onbuttonclick.calledonce).to.be.tru","expect(wrapper.contains(<div","expect(wrapper.find('.foo","expect(wrapper.find('.icon","expect(wrapper.find(foo)).to.have.length(3","expect(wrapper.props().bar).to.equal(\"baz","expect(wrapper.props().bar).to.equal(\"foo","expect(wrapper.text()).to.contain(\"uniqu","explicitli","extrapol","find","flexibl","follow","foo","framework","full","futur","icon","import","instal","introduct","intuit","it('allow","it('cal","it('rend","it('should","it('simul","javascript","jquery'","jsdom","length","librari","licens","list","major","make","manipul","markup","meant","mimick","mit","mocha","modul","mount","mount(<foo","mycompon","npm","onbuttonclick","onbuttonclick={onbuttonclick","order","out","output","package.json","page","pass","prop","react","read","enzyme","enzyme'","regard","render","render(<foo","runner","save","set","setprop","shallow","shallow(<mycompon","simpli","simul","sinon.spi","spi","spylifecycl","spylifecycle(foo","star","star')).to.have.length(1","start","static","test","text","three","titl","title=\"uniqu","to.be.tru","travers","true","uniqu","unopinion","us","usag","util","wrapper","wrapper.find('button').click","wrapper.setprop"],"docs/api/index.html":["api","const","edit","full","import","mount","mount(<mycompon","mycompon","page","enzyme","refer","render","render(<mycompon","shallow","shallow(<mycompon","static","wrapper"],"docs/api/ReactWrapper/map.html":["anoth","argument","array","array<ani","bar","bax","baz","classnam","classname=\"foo","classname=\"foo\">bar</div","classname=\"foo\">bax</div","classname=\"foo\">baz</div","collect","const","context","current","div","each","edit","eql","exampl","expect","expect(texts).to.eql","find","first","fn","foo","foreach(fn","function","initialvalu","instanc","map","map(fn","method","mount","node","node.text","origin","page","pass","reactwrapp","reduce(fn","reduceright(fn","relat","result","return","run","text","valu","wrapper","wrapper.find('.foo').map(nod"],"docs/api/ReactWrapper/at.html":["0","argument","around","at(index","bar","base","const","current","edit","equal","exampl","expect","expect(wrapper.find(foo).at(0).props().foo).to.equal(\"bar","find","given","index","indic","integ","mount","mount(<mycompon","mycompon","new","node","number","page","prop","reactwrapp","retriev","return","wrap","wrapper","zero"],"docs/api/ReactWrapper/closest.html":["1","ancestor","call","children","closest","closest(selector","const","current","edit","element","exampl","expect","expect(wrapper.find(foo).closest('.bar)).to.have.length(1","find","first","itself","length","match","method","mount","mount(<mycompon","mycompon","new","node","node'","note","page","parent","reactwrapp","relat","result","return","selector","singl","start","through","travers","tree","up","wrap","wrapper"],"docs/api/ReactWrapper/contains.html":["anywher","argument","bar","base","boolean","call","children","classnam","classname=\"foo","common","const","contain","contains(nod","current","detect","determin","div","edit","equal","exampl","expect","expect(wrapper.contains(<div","foo","gotcha","instance'","it'","keep","look","make","mani","method","mind","mount","mount(<mycompon","mycompon","node","node'","on","page","pass","presenc","reactel","render","return","selector","sure","to.be.tru","tree","true","well","whether","whose","wrapper"],"docs/api/ReactWrapper/every.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').every('.bar')).to.be.fals","expect(wrapper.find('.foo').every('.foo')).to.be.tru","expect(wrapper.find('.foo').every('.qoo')).to.be.fals","fals","find","foo","hoo","match","method","mount","node","page","provid","qoo","enzymeselector","relat","return","selector","somewhere(pred","true","whether","wrapper"],"docs/api/ReactWrapper/everyWhere.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywher","everywhere(fn","everywhere(pred","everywhere(selector","exampl","expect","expect(wrapper.find('.foo').everywhere(n","fals","find","foo","function","hasclass","hoo","match","method","mount","n.hasclass('bar'))).to.be.fals","n.hasclass('foo'))).to.be.tru","n.hasclass('qoo'))).to.be.fals","node","page","pass","predic","provid","qoo","reactwrapp","relat","return","some(selector","true","whether","wrapper"],"docs/api/ReactWrapper/filter.html":["1","argument","bar","const","current","edit","exampl","expect","expect(wrapper.find('.foo').filter('.bar')).to.have.length(1","filter","filter(selector","filterwhere(pred","find","foo","length","match","method","mount","mount(<mycompon","mycompon","new","node","page","provid","reactwrapp","enzymeselector","relat","return","selector","wrap","wrapper"],"docs/api/ReactWrapper/filterWhere.html":["4","argument","boolean","complexfoo","const","current","edit","exampl","expect","expect(complexcomponents).to.have.length(4","filter","filter(selector","filterwher","filterwhere(fn","filterwhere(pred","find","foo","function","length","method","mount","mount(<mycompon","mycompon","n.type","new","node","page","pass","predic","provid","reactwrapp","relat","return","string","true","type","typeof","wrap","wrapper","wrapper.find('.foo').filterwhere(n"],"docs/api/ReactWrapper/find.html":["1","3","argument","bar","class","class')).to.have.length(3","compon","components/foo","compound","const","constructor","css","current","display","div.som","edit","exampl","expect","expect(wrapper.find('#foo')).to.have.length(1","expect(wrapper.find('.bar')).to.have.length(3","expect(wrapper.find('.foo')).to.have.length(1","expect(wrapper.find('div.som","expect(wrapper.find('foo')).to.have.length(1","expect(wrapper.find(foo)).to.have.length(1","find","find(selector","findwhere(pred","foo","found","id","import","length","match","method","mount","mount(<mycompon","mycompon","name","new","node","page","provid","reactwrapp","enzymeselector","relat","render","return","selector","tree","wrap","wrapper"],"docs/api/ReactWrapper/findWhere.html":["8","argument","boolean","call","complexcompon","const","edit","exampl","expect","expect(complexcomponents).to.have.length(8","find","find(selector","findwher","findwhere(fn","findwhere(pred","found","function","length","method","mount","mount(<mycompon","mycompon","n.type","new","node","page","pass","predic","provid","reactwrapp","relat","render","return","string","tree","true","type","typeof","wrap","wrapper","wrapper.findwhere(n"],"docs/api/ReactWrapper/first.html":["bar","const","edit","equal","exampl","expect","expect(wrapper.find(foo).first().props().foo).to.equal(\"bar","find","first","match","mount","mount(<mycompon","mycompon","new","node","page","prop","reactwrapp","reduc","return","set","wrap","wrapper"],"docs/api/ReactWrapper/forEach.html":["argument","around","bar","bax","baz","callback","classnam","classname=\"foo","collect","const","context","correspond","current","div","each","edit","exampl","execut","expect","expect(s.hasclass('foo')).to.b","find","first","fn","foo","foreach","foreach(fn","function","hasclass","instanc","iter","itself","map(fn","method","mount","node","origin","page","pass","provid","reactwrapp","relat","return","run","self","through","true","wrapper","wrapper.find('.foo').foreach(funct"],"docs/api/ReactWrapper/get.html":["0","argument","bar","base","const","current","edit","equal","exampl","expect","expect(wrapper.find(foo).get(0).props.foo).to.equal(\"bar","find","get(index","given","index","indic","integ","mount","mount(<mycompon","mycompon","node","number","page","reactel","retriev","return","wrapper","zero"],"docs/api/ReactWrapper/hasClass.html":["argument","boolean","button","button').hasclass('disabled')).to.be.tru","class","classnam","common","const","css","current","disabl","edit","exampl","expect","expect(wrapper.find('.mi","find","gotcha","hasclass","hasclass('.foo","hasclass('foo","hasclass(classnam","includ","mount","mount(<mycompon","mycompon","name","node","note","page","pass","prop","return","selector","singl","string","true","whether","wrapper"],"docs/api/ReactWrapper/instance.html":["be","call","compon","const","edit","exampl","expect(inst).to.be.instanceof(mycompon","get","inst","instanc","jsx","mount","mount(<mycompon","mycompon","node","note","page","pass","reactcompon","render","return","root","wrapper","wrapper.inst"],"docs/api/ReactWrapper/is.html":["argument","boolean","class","class')).to.be.tru","classnam","classname=\"som","const","current","div","edit","exampl","expect","expect(wrapper.is('.som","is(selector","match","mount","mount(<div","node","page","provid","enzymeselector","return","selector","true","whether","wrapper"],"docs/api/ReactWrapper/last.html":["bar","const","edit","equal","exampl","expect","expect(wrapper.find(foo).last().props().foo).to.equal(\"bar","find","last","match","mount","mount(<mycompon","mycompon","new","node","page","prop","reactwrapp","reduc","return","set","wrap","wrapper"],"docs/api/ReactWrapper/children.html":["argument","children","children([selector","closest(selector","const","current","edit","exampl","expect","expect(wrapper.find('ul').children()).to.have.length(items.length","filter","find","item","items={item","length","method","mount","mount(<todolist","new","node","node(","option","page","parent","provid","reactwrapp","enzymeselector","relat","result","return","selector","todolist","ul","wrap","wrapper"],"docs/api/ReactWrapper/not.html":["1","argument","bar","const","current","don't","edit","effect","exampl","expect","expect(wrapper.find('.foo').not('.bar')).to.have.length(1","filter","filter(selector","filterwhere(pred","find","foo","invers","length","match","method","mount","mount(<mycompon","mycompon","negat","new","node","not(selector","page","provid","reactwrapp","enzymeselector","relat","return","selector","wrap","wrapper"],"docs/api/ReactWrapper/parent.html":["children","closest(selector","const","current","direct","div","edit","exampl","expect","expect(wrapper.find('ul').parent().is('div')).to.be.tru","find","method","mount","mount(<todolist","new","node","page","parent","reactwrapp","relat","result","return","todolist","true","ul","wrap","wrapper"],"docs/api/ReactWrapper/parents.html":["2","argument","around","call","children","closest(selector","const","current","edit","exampl","expect","expect(wrapper.find('ul').parents()).to.have.length(2","filter","find","includ","length","method","mount","mount(<todolist","new","node","note","option","page","parent","parents([selector","parents/ancestor","provid","reactwrapp","enzymeselector","relat","result","return","selector","singl","todolist","ul","wrap","wrapper"],"docs/api/ReactWrapper/prop.html":["10","argument","call","compon","const","current","edit","equal","exampl","expect","expect(wrapper.prop('foo')).to.equal(10","foo","foo={10","instanc","key","method","mount","mount(<mycompon","mycompon","name","node","note","object","page","prop","prop([key","prop(key","provid","relat","return","singl","state([key","string","such","this.props[key","valu","wrapper"],"docs/api/ReactWrapper/props.html":["10","call","const","current","edit","equal","exampl","expect","expect(wrapper.props().foo).to.equal(10","foo","foo={10","hash","method","mount","mount(<mycompon","mycompon","node","note","object","page","prop","relat","return","singl","state([key","wrapper"],"docs/api/ReactWrapper/reduce.html":["16","2","4","8","amount","amount={2","amount={4","amount={8","appli","argument","around","array","array<ani","bar","be","class","collect","const","current","div","each","edit","equal","exampl","expect","expect(total).to.equal(16","extend","find","first","fn","follow","foo","foreach(fn","function","index","initialvalu","invoc","left","map","map(fn","method","mount","mount(<foo","n","n.prop('amount","node","number","option","page","pass","previou","process","prop","provid","react.compon","reactwrapp","reduc","reduce(fn","reduceright(fn","relat","render","return","right","run","singl","t","total","valu","wrapper","wrapper.find(bar).reduce((amount"],"docs/api/ReactWrapper/reduceRight.html":["16","2","4","8","amount","amount={2","amount={4","amount={8","appli","argument","around","array","array<ani","bar","be","class","collect","const","current","div","each","edit","equal","exampl","expect","expect(total).to.equal(16","extend","find","first","fn","follow","foo","foreach(fn","function","index","initialvalu","invoc","left","map","map(fn","method","mount","mount(<foo","n","n.prop('amount","node","number","option","page","pass","previou","process","prop","provid","react.compon","reactwrapp","reduc","reduce(fn","reduceright(fn","relat","render","return","right","run","singl","t","total","valu","wrapper","wrapper.find(bar).reduce((amount"],"docs/api/ReactWrapper/setProps.html":["0","1","accept","alreadi","argument","bar","behav","call","chang","class","classnam","classname={this.state.nam","common","compon","componentwillreceiveprop","const","contain","current","div","edit","exampl","exist","expect","expect(spy.calledonce).to.be.fals","expect(spy.calledonce).to.be.tru","expect(wrapper.find('.bar')).to.have.length(0","expect(wrapper.find('.bar')).to.have.length(1","expect(wrapper.find('.foo')).to.have.length(0","expect(wrapper.find('.foo')).to.have.length(1","extend","fals","find","foo","foo=\"bar","gotcha","instanc","itself","length","lifecycl","merg","method","mount","mount(<foo","mount(<mycompon","mycompon","name","name=\"foo","new","note","object","over","page","prop","re","react.compon","reactwrapp","relat","render","return","root","self","set","setprop","setprops(nextprop","setprops(prop","setstat","setstate(st","similar","sinon.spy(mycomponent.prototyp","spi","state","test","this.state.nam","time","true","us","want","wrapper","wrapper.setprop"],"docs/api/ReactWrapper/setState.html":["0","1","accur","achiev","alway","api","argument","bar","call","class","classnam","classname={this.state.nam","common","compon","component'","const","constructor","constructor(prop","contain","current","definit","div","edit","exampl","expect","expect(wrapper.find('.bar')).to.have.length(0","expect(wrapper.find('.bar')).to.have.length(1","expect(wrapper.find('.foo')).to.have.length(0","expect(wrapper.find('.foo')).to.have.length(1","extend","extern","find","foo","gotcha","hard","instanc","invok","itself","length","merg","method","mount","mount(<foo","name","new","note","object","order","page","possibl","practic","re","react.compon","reactwrapp","relat","render","return","root","self","setprops(prop","setstat","setstate(nextst","setstate(st","similar","sparingli","state","super","super(prop","test","this.stat","this.state.nam","us","util","want","whatev","wrapper","wrapper.setst"],"docs/api/ReactWrapper/simulate.html":["0","0').length).to.equal(1","1","1').length).to.equal(1","arg","argument","class","classnam","classname={`click","click","const","constructor","constructor(prop","count","data","div","edit","equal","event","exampl","expect","expect(wrapper.find('.click","extend","find","foo","handler","increment","itself","mock","mount","mount(<foo","name","object","onclick","option","page","pass","react.compon","reactwrapp","render","return","self","setstat","simul","simulate(ev","string","super","super(prop","this.setst","this.stat","through","wrapper","wrapper.simulate('click"],"docs/api/ReactWrapper/some.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').some('.bar')).to.be.fals","expect(wrapper.find('.foo').some('.foo')).to.be.tru","expect(wrapper.find('.foo').some('.qoo')).to.be.tru","fals","find","foo","hoo","match","method","mount","node","on","page","provid","qoo","enzymeselector","relat","return","selector","some(selector","somewhere(pred","true","whether","wrapper"],"docs/api/ReactWrapper/someWhere.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').somewhere(n","fals","find","foo","function","hasclass","hoo","match","method","mount","n.hasclass('bar'))).to.be.fals","n.hasclass('foo'))).to.be.tru","n.hasclass('qoo'))).to.be.tru","node","on","page","pass","predic","provid","qoo","reactwrapp","relat","return","some(selector","somewher","somewhere(fn","somewhere(pred","true","whether","wrapper"],"docs/api/ReactWrapper/state.html":["10","argument","compon","const","edit","equal","exampl","expect","expect(wrapper.state('foo')).to.equal(10","expect(wrapper.state().foo).to.equal(10","foo","hash","instanc","key","method","mount","mount(<mycompon","mycompon","name","node","object","option","page","pass","prop","prop(key","provid","relat","return","root","state","state([key","string","this.state[key","valu","wrapper"],"docs/api/ReactWrapper/text.html":["actual","b","b>important</b></div","be","call","compon","const","current","div","edit","equal","exampl","expect","expect(wrapper.text()).to.equal('<foo","expect(wrapper.text()).to.equal('import","foo","function","html","import","instead","look","method","mount","mount(<div><b>important</b></div","mount(<div><foo","node","note","output","page","enzyme'","relat","render","result","return","singl","skeptic","string","test","text","tree","us","wrapper"],"docs/api/ReactWrapper/type.html":["call","compon","composit","const","constructor","current","div","dom","edit","equal","exampl","expect","expect(wrapper.type()).to.equal(foo","expect(wrapper.ype()).to.equal('div","foo","it'","mount","mount(<div","mount(<foo","name","nativ","node","note","page","return","singl","string","string|funct","tag","type","wrapper","ype"],"docs/api/ReactWrapper/update.html":["0","befor","call","check","class","compon","const","constructor","constructor(prop","div","div>{this.count++}</div","edit","exampl","expect(wrapper.text()).to.equal(\"0","expect(wrapper.text()).to.equal(\"1","extend","extern","forc","impurerend","instanc","itself","jsx","mount(<impurerend","note","output","page","re","react.compon","reactwrapp","render","return","root","run","self","someth","somewher","state","super","super(prop","this.count","updat","us","wrapper","wrapper.upd"],"docs/api/ShallowWrapper/map.html":["anoth","argument","array","array<ani","bar","bax","baz","classnam","classname=\"foo","classname=\"foo\">bar</div","classname=\"foo\">bax</div","classname=\"foo\">baz</div","collect","const","context","current","div","each","edit","eql","exampl","expect","expect(texts).to.eql","find","first","fn","foo","foreach(fn","function","initialvalu","instanc","map","map(fn","method","node","node.text","origin","page","pass","reduce(fn","reduceright(fn","relat","result","return","run","shallow","shallowwrapp","text","valu","wrapper","wrapper.find('.foo').map(nod"],"docs/api/ShallowWrapper/at.html":["0","argument","around","at(index","bar","base","const","current","edit","equal","exampl","expect","expect(wrapper.find(foo).at(0).props().foo).to.equal(\"bar","find","given","index","indic","integ","mycompon","new","node","number","page","prop","retriev","return","shallow","shallow(<mycompon","shallowwrapp","wrap","wrapper","zero"],"docs/api/ShallowWrapper/closest.html":["1","ancestor","call","children","closest","closest(selector","const","current","edit","element","exampl","expect","expect(wrapper.find(foo).closest('.bar)).to.have.length(1","find","first","itself","length","match","method","mycompon","new","node","node'","note","page","parent","relat","result","return","selector","shallow","shallow(<mycompon","shallowwrapp","singl","start","through","travers","tree","up","wrap","wrapper"],"docs/api/ShallowWrapper/contains.html":["anywher","argument","bar","base","boolean","call","children","classnam","classname=\"foo","common","const","contain","contains(nod","current","detect","determin","div","edit","equal","exampl","expect","expect(wrapper.contains(<div","foo","gotcha","instance'","it'","keep","look","make","mani","method","mind","mycompon","node","node'","on","page","pass","presenc","reactel","render","return","selector","shallow","shallow(<mycompon","sure","to.be.tru","tree","true","well","whether","whose","wrapper"],"docs/api/ShallowWrapper/debug.html":["40","80","book","bookcov","class","classnam","classname=\"titl","classname=\"title\"\">{title}</h1","classname=\"title\">huckleberri","consol","console.log(wrapper.debug","const","cover","cover={cov","debug","div","edit","exampl","expect","extend","finn","finn</h1","h1","height","html","http://some.url/to/img.png","huckleberri","log","out","output","page","pass","print","purpos","react.compon","render","result","return","shallow","shallow(<book","string","test","this.prop","titl","title=\"huckleberri","url","us","width","wrapper"],"docs/api/ShallowWrapper/every.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').every('.bar')).to.be.fals","expect(wrapper.find('.foo').every('.foo')).to.be.tru","expect(wrapper.find('.foo').every('.qoo')).to.be.fals","fals","find","foo","hoo","match","method","node","page","provid","qoo","enzymeselector","relat","return","selector","shallow","somewhere(pred","true","whether","wrapper"],"docs/api/ShallowWrapper/everyWhere.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywher","everywhere(fn","everywhere(pred","everywhere(selector","exampl","expect","expect(wrapper.find('.foo').everywhere(n","fals","find","foo","function","hasclass","hoo","match","method","n.hasclass('bar'))).to.be.fals","n.hasclass('foo'))).to.be.tru","n.hasclass('qoo'))).to.be.fals","node","page","pass","predic","provid","qoo","relat","return","shallow","shallowwrapp","some(selector","true","whether","wrapper"],"docs/api/ShallowWrapper/filter.html":["1","argument","bar","const","current","edit","exampl","expect","expect(wrapper.find('.foo').filter('.bar')).to.have.length(1","filter","filter(selector","filterwhere(pred","find","foo","length","match","method","mycompon","new","node","page","provid","enzymeselector","relat","return","selector","shallow","shallow(<mycompon","shallowwrapp","wrap","wrapper"],"docs/api/ShallowWrapper/filterWhere.html":["4","argument","boolean","complexfoo","const","current","edit","exampl","expect","expect(complexcomponents).to.have.length(4","filter","filter(selector","filterwher","filterwhere(fn","filterwhere(pred","find","foo","function","length","method","mycompon","n.type","new","node","page","pass","predic","provid","relat","return","shallow","shallow(<mycompon","shallowwrapp","string","true","type","typeof","wrap","wrapper","wrapper.find('.foo').filterwhere(n"],"docs/api/ShallowWrapper/find.html":["1","3","argument","bar","class","class')).to.have.length(3","compon","components/foo","compound","const","constructor","css","current","display","div.som","edit","exampl","expect","expect(wrapper.find('#foo')).to.have.length(1","expect(wrapper.find('.bar')).to.have.length(3","expect(wrapper.find('.foo')).to.have.length(1","expect(wrapper.find('div.som","expect(wrapper.find('foo')).to.have.length(1","expect(wrapper.find(foo)).to.have.length(1","find","find(selector","findwhere(pred","foo","found","id","import","length","match","method","mycompon","name","new","node","page","provid","enzymeselector","relat","render","return","selector","shallow","shallow(<mycompon","shallowwrapp","tree","wrap","wrapper"],"docs/api/ShallowWrapper/findWhere.html":["8","argument","boolean","call","complexcompon","const","edit","exampl","expect","expect(complexcomponents).to.have.length(8","find","find(selector","findwher","findwhere(fn","findwhere(pred","found","function","length","method","mycompon","n.type","new","node","page","pass","predic","provid","relat","render","return","shallow","shallow(<mycompon","shallowwrapp","string","tree","true","type","typeof","wrap","wrapper","wrapper.findwhere(n"],"docs/api/ShallowWrapper/first.html":["bar","const","edit","equal","exampl","expect","expect(wrapper.find(foo).first().props().foo).to.equal(\"bar","find","first","match","mycompon","new","node","page","prop","reduc","return","set","shallow","shallow(<mycompon","shallowwrapp","wrap","wrapper"],"docs/api/ShallowWrapper/forEach.html":["argument","around","bar","bax","baz","callback","classnam","classname=\"foo","collect","const","context","correspond","current","div","each","edit","exampl","execut","expect","expect(s.hasclass('foo')).to.b","find","first","fn","foo","foreach","foreach(fn","function","hasclass","instanc","iter","itself","map(fn","method","node","origin","page","pass","provid","relat","return","run","self","shallow","shallowwrapp","through","true","wrapper","wrapper.find('.foo').foreach(funct"],"docs/api/ShallowWrapper/get.html":["0","argument","bar","base","const","current","edit","equal","exampl","expect","expect(wrapper.find(foo).get(0).props.foo).to.equal(\"bar","find","get(index","given","index","indic","integ","mycompon","node","number","page","reactel","retriev","return","shallow","shallow(<mycompon","wrapper","zero"],"docs/api/ShallowWrapper/hasClass.html":["argument","boolean","button","button').hasclass('disabled')).to.be.tru","class","classnam","common","const","css","current","disabl","edit","exampl","expect","expect(wrapper.find('.mi","find","gotcha","hasclass","hasclass('.foo","hasclass('foo","hasclass(classnam","includ","mycompon","name","node","note","page","pass","prop","return","selector","shallow","shallow(<mycompon","singl","string","true","whether","wrapper"],"docs/api/ShallowWrapper/html.html":["b","bar","bar\"><div","call","class","class=\"in","classnam","classname=\"in","const","current","div","edit","equal","exampl","expect","expect(wrapper.find(foo).html()).to.equ","expect(wrapper.html()).to.equ","expect(wrapper.html()).to.equal('<div><b>important</b></div","extend","find","foo","foo\"></div","foo\"></div></div","html","markup","method","node","note","page","react.compon","relat","render","result","return","shallow","shallow(<bar","shallow(<div><b>important</b></div","singl","string","text","tree","wrapper"],"docs/api/ShallowWrapper/instance.html":["be","call","compon","const","edit","exampl","expect(inst).to.be.instanceof(mycompon","get","inst","instanc","jsx","mycompon","node","note","page","pass","reactcompon","render","return","root","shallow","shallow(<mycompon","wrapper","wrapper.inst"],"docs/api/ShallowWrapper/is.html":["argument","boolean","class","class')).to.be.tru","classnam","classname=\"som","const","current","div","edit","exampl","expect","expect(wrapper.is('.som","is(selector","match","node","page","provid","enzymeselector","return","selector","shallow","shallow(<div","true","whether","wrapper"],"docs/api/ShallowWrapper/last.html":["bar","const","edit","equal","exampl","expect","expect(wrapper.find(foo).last().props().foo).to.equal(\"bar","find","last","match","mycompon","new","node","page","prop","reduc","return","set","shallow","shallow(<mycompon","shallowwrapp","wrap","wrapper"],"docs/api/ShallowWrapper/children.html":["argument","children","children([selector","closest(selector","const","current","edit","exampl","expect","expect(wrapper.find('ul').children()).to.have.length(items.length","filter","find","item","items={item","length","method","new","node","node(","option","page","parent","provid","enzymeselector","relat","result","return","selector","shallow","shallow(<todolist","shallowwrapp","todolist","ul","wrap","wrapper"],"docs/api/ShallowWrapper/not.html":["1","argument","bar","const","current","don't","edit","effect","exampl","expect","expect(wrapper.find('.foo').not('.bar')).to.have.length(1","filter","filter(selector","filterwhere(pred","find","foo","invers","length","match","method","mycompon","negat","new","node","not(selector","page","provid","enzymeselector","relat","return","selector","shallow","shallow(<mycompon","shallowwrapp","wrap","wrapper"],"docs/api/ShallowWrapper/parent.html":["children","closest(selector","const","current","direct","div","edit","exampl","expect","expect(wrapper.find('ul').parent().is('div')).to.be.tru","find","method","new","node","page","parent","relat","result","return","shallow","shallow(<todolist","shallowwrapp","todolist","true","ul","wrap","wrapper"],"docs/api/ShallowWrapper/parents.html":["2","argument","around","call","children","closest(selector","const","current","edit","exampl","expect","expect(wrapper.find('ul').parents()).to.have.length(2","filter","find","includ","length","method","new","node","note","option","page","parent","parents([selector","parents/ancestor","provid","enzymeselector","relat","result","return","selector","shallow","shallow(<todolist","shallowwrapp","singl","todolist","ul","wrap","wrapper"],"docs/api/ShallowWrapper/prop.html":["10","argument","call","compon","const","current","edit","equal","exampl","expect","expect(wrapper.prop('foo')).to.equal(10","foo","foo={10","instanc","key","method","mycompon","name","node","note","object","page","prop","prop([key","prop(key","provid","relat","return","shallow","shallow(<mycompon","singl","state([key","string","such","this.props[key","valu","wrapper"],"docs/api/ShallowWrapper/props.html":["10","call","const","current","edit","equal","exampl","expect","expect(wrapper.props().foo).to.equal(10","foo","foo={10","hash","method","mycompon","node","note","object","page","prop","relat","return","shallow","shallow(<mycompon","singl","state([key","wrapper"],"docs/api/ShallowWrapper/reduce.html":["16","2","4","8","amount","amount={2","amount={4","amount={8","appli","argument","around","array","array<ani","bar","be","class","collect","const","current","div","each","edit","equal","exampl","expect","expect(total).to.equal(16","extend","find","first","fn","follow","foo","foreach(fn","function","index","initialvalu","invoc","left","map","map(fn","method","n","n.prop('amount","node","number","option","page","pass","previou","process","prop","provid","react.compon","reduc","reduce(fn","reduceright(fn","relat","render","return","right","run","shallow","shallow(<foo","shallowwrapp","singl","t","total","valu","wrapper","wrapper.find(bar).reduce((amount"],"docs/api/ShallowWrapper/reduceRight.html":["16","2","4","8","amount","amount={2","amount={4","amount={8","appli","argument","around","array","array<ani","bar","be","class","collect","const","current","div","each","edit","equal","exampl","expect","expect(total).to.equal(16","extend","find","first","fn","follow","foo","foreach(fn","function","index","initialvalu","invoc","left","map","map(fn","method","n","n.prop('amount","node","number","option","page","pass","previou","process","prop","provid","react.compon","reduc","reduce(fn","reduceright(fn","relat","render","return","right","run","shallow","shallow(<foo","shallowwrapp","singl","t","total","valu","wrapper","wrapper.find(bar).reduce((amount"],"docs/api/ShallowWrapper/render.html":["0","1","around","bar","call","cheeriowrapp","class","classnam","classname=\"in","const","current","div","edit","exampl","expect","expect(wrapper.find('.in","expect(wrapper.find(foo).render().find('.in","extend","find","foo","foo')).to.have.length(0","foo')).to.have.length(1","html","length","node","node'","note","page","react.compon","render","result","return","shallow","shallow(<bar","singl","string","subtre","wrapper"],"docs/api/ShallowWrapper/setProps.html":["0","1","accept","alreadi","argument","bar","behav","call","chang","class","classnam","classname={this.state.nam","common","compon","componentwillreceiveprop","const","contain","current","div","edit","exampl","exist","expect","expect(spy.calledonce).to.be.fals","expect(spy.calledonce).to.be.tru","expect(wrapper.find('.bar')).to.have.length(0","expect(wrapper.find('.bar')).to.have.length(1","expect(wrapper.find('.foo')).to.have.length(0","expect(wrapper.find('.foo')).to.have.length(1","extend","fals","find","foo","foo=\"bar","gotcha","instanc","itself","length","lifecycl","merg","method","mycompon","name","name=\"foo","new","note","object","over","page","prop","re","react.compon","relat","render","return","root","self","set","setprop","setprops(nextprop","setprops(prop","setstat","setstate(st","shallow","shallow(<foo","shallow(<mycompon","shallowwrapp","similar","sinon.spy(mycomponent.prototyp","spi","state","test","this.state.nam","time","true","us","want","wrapper","wrapper.setprop"],"docs/api/ShallowWrapper/setState.html":["0","1","accur","achiev","alway","api","argument","bar","call","class","classnam","classname={this.state.nam","common","compon","component'","const","constructor","constructor(prop","contain","current","definit","div","edit","exampl","expect","expect(wrapper.find('.bar')).to.have.length(0","expect(wrapper.find('.bar')).to.have.length(1","expect(wrapper.find('.foo')).to.have.length(0","expect(wrapper.find('.foo')).to.have.length(1","extend","extern","find","foo","gotcha","hard","instanc","invok","itself","length","merg","method","name","new","note","object","order","page","possibl","practic","re","react.compon","relat","render","return","root","self","setprops(prop","setstat","setstate(nextst","setstate(st","shallow","shallow(<foo","shallowwrapp","similar","sparingli","state","super","super(prop","test","this.stat","this.state.nam","us","util","want","whatev","wrapper","wrapper.setst"],"docs/api/ShallowWrapper/shallow.html":["0","1","around","bar","bar')).to.have.length(0","bar')).to.have.length(1","call","class","classnam","classname=\"in","const","current","div","edit","exampl","expect","expect(wrapper.find('.in","expect(wrapper.find(bar)).to.have.length(1","expect(wrapper.find(bar).shallow().find('.in","extend","find","foo","it'","length","new","node","note","page","react.compon","render","return","shallow","shallow(<foo","shallowwrapp","singl","wrap","wrapper"],"docs/api/ShallowWrapper/simulate.html":["0","0').length).to.equal(1","1","1').length).to.equal(1","actual","arg","argument","call","class","classnam","classname={`click","click","common","const","constructor","constructor(prop","count","current","data","div","edit","environ","equal","event","exampl","expect","expect(wrapper.find('.click","extend","find","foo","gotcha","handler","increment","itself","mock","name","node","normal","object","on","onclick","option","page","pass","propag","react.compon","real","render","result","return","self","set","setstat","shallow","shallow(<foo","shallowwrapp","simul","simulate(ev","string","super","super(prop","this.setst","this.stat","through","wrapper","wrapper.simulate('click"],"docs/api/ShallowWrapper/some.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').some('.bar')).to.be.fals","expect(wrapper.find('.foo').some('.foo')).to.be.tru","expect(wrapper.find('.foo').some('.qoo')).to.be.tru","fals","find","foo","hoo","match","method","node","on","page","provid","qoo","enzymeselector","relat","return","selector","shallow","some(selector","somewhere(pred","true","whether","wrapper"],"docs/api/ShallowWrapper/someWhere.html":["argument","bar","boo","boolean","classnam","classname=\"foo","const","current","div","edit","every(selector","everywhere(pred","exampl","expect","expect(wrapper.find('.foo').somewhere(n","fals","find","foo","function","hasclass","hoo","match","method","n.hasclass('bar'))).to.be.fals","n.hasclass('foo'))).to.be.tru","n.hasclass('qoo'))).to.be.tru","node","on","page","pass","predic","provid","qoo","relat","return","shallow","shallowwrapp","some(selector","somewher","somewhere(fn","somewhere(pred","true","whether","wrapper"],"docs/api/ShallowWrapper/state.html":["10","argument","compon","const","edit","equal","exampl","expect","expect(wrapper.state('foo')).to.equal(10","expect(wrapper.state().foo).to.equal(10","foo","hash","instanc","key","method","mycompon","name","node","object","option","page","pass","prop","prop(key","provid","relat","return","root","shallow","shallow(<mycompon","state","state([key","string","this.state[key","valu","wrapper"],"docs/api/ShallowWrapper/text.html":["actual","b","b>important</b></div","be","call","compon","const","current","div","edit","equal","exampl","expect","expect(wrapper.text()).to.equal('<foo","expect(wrapper.text()).to.equal('import","foo","function","html","import","instead","look","method","node","note","output","page","enzyme'","relat","render","result","return","shallow","shallow(<div><b>important</b></div","shallow(<div><foo","singl","skeptic","string","test","text","tree","us","wrapper"],"docs/api/ShallowWrapper/type.html":["call","compon","composit","const","constructor","current","div","dom","edit","equal","exampl","expect","expect(wrapper.type()).to.equal(foo","expect(wrapper.ype()).to.equal('div","foo","it'","name","nativ","node","note","page","return","shallow","shallow(<div","shallow(<foo","singl","string","string|funct","tag","type","wrapper","ype"],"docs/api/ShallowWrapper/update.html":["0","befor","call","check","class","compon","const","constructor","constructor(prop","div","div>{this.count++}</div","edit","exampl","expect(wrapper.text()).to.equal(\"0","expect(wrapper.text()).to.equal(\"1","extend","extern","forc","impurerend","instanc","itself","jsx","note","output","page","re","react.compon","render","return","root","run","self","shallow(<impurerend","shallowwrapp","someth","somewher","state","super","super(prop","this.count","updat","us","wrapper","wrapper.upd"],"docs/api/mount.html":["allow","ancestor","anoth","api","array","at(index","bar","bar=\"baz","baz","boolean","browser","button","call","case","children","class","click","closest(selector","complet","compon","componentdidmount","const","contains(nod","current","data","depend","describ","describe('<foo","direct","dom","each","edit","equal","essenti","etc","event","every(selector","everywhere(selector","execut","expect","expect(foo.prototype.componentdidmount.calledonce).to.be.tru","expect(onbuttonclick.calledonce).to.be.tru","expect(wrapper.props().bar).to.equal(\"baz","expect(wrapper.props().bar).to.equal(\"foo","filter","filter(selector","filterwhere(pred","find","find(selector","findwhere(pred","first","foo","forceupd","foreach(fn","full","fulli","function","get(index","given","hasclass(classnam","headless","ideal","ie","implement","import","index","initialvalu","instanc","interact","invers","is(selector","it('allow","it('cal","it('simul","iter","js","jsdom","last","left","librari","lifecycl","manual","map","map(fn","match","mount","mount(<foo","name","node","not(selector","object","onbuttonclick","onbuttonclick={onbuttonclick","order","page","parent","pass","predic","prop","prop(key","provid","reactcompon","reactwrapp","enzyme","reduc","reduce(fn","reduceright(fn","remov","render","represent","requir","return","right","root","selector","set","setprop","setprops(nextprop","setstate(nextst","simul","simulate(ev","some(selector","somewher","somewhere(pred","spi","spy(foo.prototyp","state","state([key","string","string|funct","test","text","through","tree","true","type","updat","us","valu","whether","wrapper","wrapper.find('button').click","wrapper.setprop"],"docs/api/render.html":["3","analog","analyz","api","bar","bar')).to.have.length(3","bar`","believ","cheerio","cheerio'","cheeriowrapp","compon","const","constructor","contain","describ","describe('<foo","disservic","document","duplic","edit","exmpl","expect","expect(wrapper.find('.foo","expect(wrapper.text()).to.contain(\"uniqu","extrem","find","foo","function","handl","html","import","it('rend","length","librari","mount","ourselv","page","pars","parti","purpos","react","reactwrapp","enzyme","enzyme'","refer","render","render(<foo","result","return","shallow","shallowwrapp","similar","static","structur","text","third","three","titl","title=\"uniqu","travers","uniqu","us","usag","veri","well","wrapper"],"docs/api/selector.html":["1","2","3","accept","allow","ancestor","api","area","argument","assum","bar","base","capit","case","categori","charact","class","combin","compon","component'","const","constructor","contextu","css","develop","displaynam","div","div.foo.bar","edit","etc","exist","extend","fall","find","first","focus","follow","foo","further","futur","id","identifi","implement","input","input#input","insid","instanc","it'","knowledg","letter","lower","mani","method","more","mycompon","mycomponent.displaynam","name","node","node'","note","on","page","pass","pr'","react","react.compon","enzyme","enzyme'","refer","render","requir","selector","set","sibl","singl","span","start","string","subset","support","syntax","tag","those","three","thu","time","togeth","tree","uniqu","unsupport","us","valid","want","work","wrapper.find('mycompon","wrapper.find(mycompon"],"docs/api/shallow.html":["1","3","ancestor","anoth","api","aren't","around","array","assert","at(index","behavior","boolean","button","call","cheeriowrapp","child","children","class","classnam","classname=\"uniqu","click","closest(selector","compon","const","constrain","contain","contains(nod","current","data","debug","describ","describe('<mycompon","direct","div","each","edit","ensur","event","every(selector","everywhere(selector","execut","expect","expect(onbuttonclick.calledonce).to.be.tru","expect(wrapper.contains(<div","expect(wrapper.find('.icon","expect(wrapper.find(foo)).to.have.length(3","filter","filter(selector","filterwhere(pred","find","find(selector","findwhere(pred","first","foo","forceupd","foreach(fn","function","get(index","given","hasclass(classnam","html","icon","import","index","indirectli","initialvalu","instanc","invers","is(selector","it('should","it('simul","iter","last","left","length","manual","map","map(fn","match","mycompon","name","node","node'","not(selector","object","onbuttonclick","onbuttonclick={onbuttonclick","page","parent","pass","predic","prop","prop(key","provid","purpos","reactcompon","reactel","enzyme","reduc","reduce(fn","reduceright(fn","remov","render","represent","return","right","root","selector","set","setprops(nextprop","setstate(nextst","shallow","shallow(<mycompon","shallowwrapp","simul","simulate(ev","sinon.spi","some(selector","somewher","somewhere(pred","spi","star","star')).to.have.length(1","state","state([key","static","string","string|funct","subtre","test","text","three","through","to.be.tru","tree","true","type","uniqu","unit","updat","us","valu","whether","wrapper","wrapper.find('button').simulate('click","yourself"],"docs/future.html":["addit","address","ask","complet","compon","coupl","creat","css","current","discuss","edit","event","facilit","featur","full","fulli","futur","github","here","hierarch","improv","initi","interact","issu","limit","mean","method","more","nativ","near","node","now","object","on","open","oper","page","plan","potenti","progress","project","propag","provid","react","enzyme","real","render","right","rn","selector","sever","shallow","simul","specif","subset","suppli","support","test","thing","those","time","tool","us","valid","we'd","work"],"docs/installation/index.html":["0.12","0.13","0.14","4","abov","addon","alreadi","although","alway","avail","bdd","between","brew","call","chai","choic","cli","come","command","const","depend","describ","describe('mycompon","describe('non","describewithdom","describewithdom('interact","dev","differ","document","dom","dom@0.14","don't","edit","environ","es5","es6","exampl","fail","file","function","further","go","helper","import","insid","instal","interact","ioj","it('should","jsdom","layer","librari","machin","make","mocha","mount","mount(<mycompon","mycompon","need","next","node","non","note","now","npm","nvm","old","page","pass","plan","prevent","provid","quickli","react","react@0.13","react@0.14","readi","enzyme","enzyme.shallow(<foo","render","requir","require('reag","result","run","runner","safeti","save","shallow","shallow(<foo","shallow(<mycompon","simpli","skip","someth","start","style","such","support","sure","switch","test","time","tool","two","us","util","utils@0.14","var","version","want","work","worri","wrap","wrapper","written","you'r"],"docs/installation/jsdom.html":["0.12","4","abov","alway","avail","between","brew","call","cli","come","command","const","describ","describe('mycompon","describe('non","describewithdom","describewithdom('interact","differ","don't","edit","environ","fail","function","helper","import","insid","instal","interact","ioj","it('should","jsdom","layer","machin","make","mocha","mount","mount(<mycompon","mycompon","need","node","non","note","now","nvm","old","page","pass","plan","prevent","quickli","enzyme","requir","result","run","safeti","shallow","shallow(<mycompon","skip","someth","such","support","sure","switch","test","time","tool","two","us","version","want","work","worri","wrap","wrapper","written"],"docs/installation/react-013.html":["0.13","0.13.x","alreadi","const","dev","don't","edit","es5","es6","file","go","import","instal","mount","next","npm","page","react","react@0.13","readi","enzyme","enzyme.shallow(<foo","render","requir","require('reag","save","shallow","shallow(<foo","simpli","start","test","us","var","want","work","wrapper","you'r"],"docs/installation/react-014.html":["0.14","0.14.x","addon","alreadi","const","dev","dom","dom@0.14","don't","edit","es5","es6","file","further","go","import","instal","mount","next","npm","page","react","react@0.14","readi","enzyme","enzyme.shallow(<foo","render","requir","require('reag","save","shallow","shallow(<foo","simpli","start","test","us","util","utils@0.14","var","want","work","wrapper","you'r"]},"length":85},"tokenStore":{"root":{"0":{"docs":{"docs/api/ReactWrapper/at.html":{"ref":"docs/api/ReactWrapper/at.html","tf":0.015873015873015872},"docs/api/ReactWrapper/get.html":{"ref":"docs/api/ReactWrapper/get.html","tf":0.01818181818181818},"docs/api/ReactWrapper/setProps.html":{"ref":"docs/api/ReactWrapper/setProps.html","tf":0.009708737864077669},"docs/api/ReactWrapper/setState.html":{"ref":"docs/api/ReactWrapper/setState.html","tf":0.011428571428571429},"docs/api/ReactWrapper/simulate.html":{"ref":"docs/api/ReactWrapper/simulate.html","tf":0.023255813953488372},"docs/api/ReactWrapper/update.html":{"ref":"docs/api/ReactWrapper/update.html","tf":0.03529411764705882},"docs/api/ShallowWrapper/at.html":{"ref":"docs/api/ShallowWrapper/at.html","tf":0.015873015873015872},"docs/api/ShallowWrapper/get.html":{"ref":"docs/api/ShallowWrapper/get.html","tf":0.01818181818181818},"docs/api/ShallowWrapper/render.html":{"ref":"docs/api/ShallowWrapper/render.html","tf":0.008},"docs/api/ShallowWrapper/setProps.html":{"ref":"docs/api/ShallowWrapper/setProps.html","tf":0.009708737864077669},"docs/api/ShallowWrapper/setState.html":{"ref":"docs/api/ShallowWrapper/setState.html","tf":0.011428571428571429},"docs/api/ShallowWrapper/shallow.html":{"ref":"docs/api/ShallowWrapper/shallow.html","tf":0.007246376811594203},"docs/api/ShallowWrapper/simulate.html":{"ref":"docs/api/ShallowWrapper/simulate.html","tf":0.018604651162790697},"docs/api/ShallowWrapper/update.html":{"ref":"docs/api/ShallowWrapper/update.html","tf":0.03529411764705882}},".":{"1":{"2":{"docs":{"docs/installation/index.html":{"ref":"docs/installation/index.html","tf":0.006880733944954129},"docs/installation/jsdom.html":{"ref":"docs/installation/jsdom.html","tf":0.014705882352941176}}},"3":{"docs":{"CONTRIBUTING.html":{"ref":"CONTRIBUTING.html","tf":0.031914893617021274},"docs/installation/index.html":{"ref":"docs/installation/index.html","tf":0.009174311926605505},"docs/installation/react-013.html":{"ref":"docs/installation/react-013.html","tf":0.046511627906976744}},".":{"docs":{},"x":{"docs":{"index.html":{"ref":"index.html","tf":0.003745318352059925},"docs/installation/react-013.html":{"ref":"docs/installation/react-013.html","tf":3.333333333333333}}}}},"4":{"docs":{"CONTRIBUTING.html":{"ref":"CONTRIBUTING.html","tf":0.023936170212765957},"index.html":{"ref":"index.html","tf":0.003745318352059925},"docs/installation/index.html":{"ref":"docs/installation/index.html","tf":0.01376146788990