{"index":{"version":"2.3.5","fields":["title","text","keywords"],"fieldVectors":[["title/template:docs/examples/call-count",[0,0.313,1,0.313,2,0.814]],["text/template:docs/examples/call-count",[0,0.527,1,0.832,2,0.905,3,1.653,4,2.313,5,2.579,6,0.895,7,0.95,8,0.636,9,0.42,10,0.636,11,0.895,12,0.741,13,1.266,14,1.916,15,1.266,16,1.266,17,1.266,18,1.266,19,1.266,20,0.49,21,0.348,22,1.266,23,0.905,24,0.49,25,0.49]],["keywords/template:docs/examples/call-count",[]],["title/template:docs/examples/stubbing",[9,0.261,26,1.028]],["text/template:docs/examples/stubbing",[3,1.31,6,0.709,7,0.909,8,0.503,9,0.454,10,0.503,20,0.709,21,0.503,23,1.31,24,0.709,25,0.709,26,1.788,27,1.832,28,2.501,29,1.832,30,2.501,31,2.501,32,0.709,33,1.832,34,1.832,35,1.832]],["keywords/template:docs/examples/stubbing",[]],["title/template:docs/index",[36,0.536]],["text/template:docs/index",[0,0.694,1,0.694,7,0.694,8,0.51,9,0.559,10,0.51,11,0.718,12,0.718,21,0.51,24,0.718,32,0.718,36,0.51,37,1.33,38,0.978,39,0.978,40,0.978,41,0.978,42,0.978,43,0.978,44,0.978,45,0.978,46,1.327,47,1.855]],["keywords/template:docs/index",[]],["title/template:docs/packages/ember-cli-testdouble-qunit",[48,1.395]],["text/template:docs/packages/ember-cli-testdouble-qunit",[0,0.351,1,0.53,6,0.494,7,0.639,8,0.351,9,0.422,10,0.351,11,0.494,12,0.494,20,0.494,21,0.351,25,0.494,32,0.494,36,0.351,37,0.673,38,1.017,39,1.017,40,0.673,41,0.673,42,0.673,43,0.673,44,0.673,45,1.466,46,0.913,48,0.913,49,1.929,50,1.277,51,1.277,52,1.277,53,1.277,54,1.277,55,0.913,56,1.277,57,0.913,58,1.277,59,1.277,60,1.277,61,1.277,62,1.277,63,0.913,64,1.277,65,1.277,66,1.929,67,1.277,68,0.913,69,1.277,70,1.277,71,1.277,72,0.913,73,0.913,74,0.913,75,0.913]],["keywords/template:docs/packages/ember-cli-testdouble-qunit",[]],["title/template:docs/packages/testdouble-qunit",[36,0.536]],["text/template:docs/packages/testdouble-qunit",[0,0.354,1,0.534,6,0.499,7,0.715,8,0.354,9,0.425,10,0.354,11,0.499,12,0.499,20,0.499,21,0.354,24,0.751,25,0.499,32,0.499,36,0.643,37,1.232,38,1.024,39,1.024,40,0.679,41,0.679,42,0.679,43,0.679,44,0.679,45,1.472,55,0.921,57,0.921,63,0.921,68,1.671,72,0.921,73,0.921,74,0.921,75,0.921,76,1.942,77,1.289,78,1.942,79,1.289,80,1.289,81,1.289,82,1.289,83,1.942,84,1.289,85,1.289]],["keywords/template:docs/packages/testdouble-qunit",[]],["title/template:docs",[]],["text/template:docs",[]],["keywords/template:docs",[]],["title/template:application-tailwind",[86,1.028,87,1.028]],["text/template:application-tailwind",[86,1.924,87,1.924,88,2.691,89,2.691,90,2.691,91,2.691]],["keywords/template:application-tailwind",[]],["title/template:docs/api/item",[]],["text/template:docs/api/item",[]],["keywords/template:docs/api/item",[]]],"invertedIndex":[["",{"_index":7,"title":{},"text":{"template:docs/examples/call-count":{"position":[[76,2],[79,1],[92,1],[150,3],[215,2],[218,1],[231,1],[301,1],[312,3],[316,3],[381,2],[384,1],[397,1],[436,1],[470,3]]},"template:docs/examples/stubbing":{"position":[[44,1],[65,3],[79,1],[126,2],[129,1],[140,1]]},"template:docs/index":{"position":[[210,1],[223,1]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[422,2],[660,1],[673,1]]},"template:docs/packages/testdouble-qunit":{"position":[[103,1],[143,1],[550,1],[563,1]]}},"keywords":{}}],["0",{"_index":17,"title":{},"text":{"template:docs/examples/call-count":{"position":[[445,2]]}},"keywords":{}}],["2",{"_index":15,"title":{},"text":{"template:docs/examples/call-count":{"position":[[310,1]]}},"keywords":{}}],["add",{"_index":39,"title":{},"text":{"template:docs/index":{"position":[[65,4]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[360,3],[524,4]]},"template:docs/packages/testdouble-qunit":{"position":[[119,3],[414,4]]}},"keywords":{}}],["addon",{"_index":50,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[38,5]]}},"keywords":{}}],["allow",{"_index":42,"title":{},"text":{"template:docs/index":{"position":[[107,6]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[557,6]]},"template:docs/packages/testdouble-qunit":{"position":[[447,6]]}},"keywords":{}}],["alreadi",{"_index":58,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[199,7]]}},"keywords":{}}],["anywher",{"_index":65,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[378,8]]}},"keywords":{}}],["app",{"_index":91,"title":{},"text":{"template:application-tailwind":{"position":[[67,4]]}},"keywords":{}}],["applic",{"_index":54,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[111,12]]}},"keywords":{}}],["assert",{"_index":6,"title":{},"text":{"template:docs/examples/call-count":{"position":[[69,6],[208,6],[374,6]]},"template:docs/examples/stubbing":{"position":[[119,6]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[342,9]]},"template:docs/packages/testdouble-qunit":{"position":[[232,9]]}},"keywords":{}}],["assert.ok(returnsnumber(cb",{"_index":35,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[187,29]]}},"keywords":{}}],["assert.verifi",{"_index":40,"title":{},"text":{"template:docs/index":{"position":[[72,13]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[531,13]]},"template:docs/packages/testdouble-qunit":{"position":[[421,13]]}},"keywords":{}}],["assert.verify(stub",{"_index":16,"title":{},"text":{"template:docs/examples/call-count":{"position":[[414,21]]}},"keywords":{}}],["assert.verify(stub('foo",{"_index":12,"title":{},"text":{"template:docs/examples/call-count":{"position":[[122,27],[274,26]]},"template:docs/index":{"position":[[253,27]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[703,27]]},"template:docs/packages/testdouble-qunit":{"position":[[593,27]]}},"keywords":{}}],["assum",{"_index":56,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[171,7]]}},"keywords":{}}],["befor",{"_index":81,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[197,6]]}},"keywords":{}}],["call",{"_index":1,"title":{"template:docs/examples/call-count":{"position":[[10,4]]}},"text":{"template:docs/examples/call-count":{"position":[[10,4],[33,6],[60,8],[166,6],[199,8],[338,6],[365,8]]},"template:docs/index":{"position":[[148,6],[184,8]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[598,6],[634,8]]},"template:docs/packages/testdouble-qunit":{"position":[[488,6],[524,8]]}},"keywords":{}}],["callback",{"_index":33,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[91,8]]}},"keywords":{}}],["cb",{"_index":30,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[60,4],[137,2]]}},"keywords":{}}],["check",{"_index":73,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[756,5]]},"template:docs/packages/testdouble-qunit":{"position":[[646,5]]}},"keywords":{}}],["class",{"_index":90,"title":{},"text":{"template:application-tailwind":{"position":[[53,5]]}},"keywords":{}}],["const",{"_index":8,"title":{},"text":{"template:docs/examples/call-count":{"position":[[81,5],[220,5],[386,5]]},"template:docs/examples/stubbing":{"position":[[131,5]]},"template:docs/index":{"position":[[212,5]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[662,5]]},"template:docs/packages/testdouble-qunit":{"position":[[552,5]]}},"keywords":{}}],["consult",{"_index":23,"title":{},"text":{"template:docs/examples/call-count":{"position":[[524,7]]},"template:docs/examples/stubbing":{"position":[[262,7]]}},"keywords":{}}],["consum",{"_index":53,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[92,7]]}},"keywords":{}}],["correctli",{"_index":43,"title":{},"text":{"template:docs/index":{"position":[[155,10]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[605,10]]},"template:docs/packages/testdouble-qunit":{"position":[[495,10]]}},"keywords":{}}],["count",{"_index":2,"title":{"template:docs/examples/call-count":{"position":[[15,5]]}},"text":{"template:docs/examples/call-count":{"position":[[15,5]]}},"keywords":{}}],["d",{"_index":77,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[123,2]]}},"keywords":{}}],["document",{"_index":25,"title":{},"text":{"template:docs/examples/call-count":{"position":[[547,14]]},"template:docs/examples/stubbing":{"position":[[285,14]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[784,14]]},"template:docs/packages/testdouble-qunit":{"position":[[674,14]]}},"keywords":{}}],["easili",{"_index":52,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[85,6]]}},"keywords":{}}],["ember",{"_index":49,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[32,5],[284,5]]}},"keywords":{}}],["ember-cli-testdoubl",{"_index":60,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[225,20]]}},"keywords":{}}],["ember-cli-testdouble-qunit",{"_index":48,"title":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[0,26]]}},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[0,26]]}},"keywords":{}}],["ember-cli-testdouble-qunit';and",{"_index":69,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[453,32]]}},"keywords":{}}],["ember-cli-testdouble-qunitnext",{"_index":62,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[298,31]]}},"keywords":{}}],["expos",{"_index":51,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[44,7]]}},"keywords":{}}],["file",{"_index":67,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[416,5]]}},"keywords":{}}],["first",{"_index":55,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[137,6]]},"template:docs/packages/testdouble-qunit":{"position":[[30,6]]}},"keywords":{}}],["follow",{"_index":64,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[368,9]]}},"keywords":{}}],["function",{"_index":3,"title":{},"text":{"template:docs/examples/call-count":{"position":[[21,8],[154,8],[320,8]]},"template:docs/examples/stubbing":{"position":[[17,8]]}},"keywords":{}}],["function(assert",{"_index":44,"title":{},"text":{"template:docs/index":{"position":[[193,16]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[643,16]]},"template:docs/packages/testdouble-qunit":{"position":[[533,16]]}},"keywords":{}}],["gener",{"_index":89,"title":{},"text":{"template:application-tailwind":{"position":[[43,9]]}},"keywords":{}}],["go",{"_index":46,"title":{},"text":{"template:docs/index":{"position":[[314,2]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[501,3]]}},"keywords":{}}],["good",{"_index":71,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[493,4]]}},"keywords":{}}],["helper",{"_index":63,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[352,7]]},"template:docs/packages/testdouble-qunit":{"position":[[242,6]]}},"keywords":{}}],["here",{"_index":47,"title":{},"text":{"template:docs/index":{"position":[[317,5]]}},"keywords":{}}],["ignoreextraarg",{"_index":18,"title":{},"text":{"template:docs/examples/call-count":{"position":[[448,16]]}},"keywords":{}}],["import",{"_index":68,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[446,6]]},"template:docs/packages/testdouble-qunit":{"position":[[249,6],[276,6],[305,6]]}},"keywords":{}}],["inform",{"_index":21,"title":{},"text":{"template:docs/examples/call-count":{"position":[[486,11]]},"template:docs/examples/stubbing":{"position":[[229,11]]},"template:docs/index":{"position":[[301,12]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[743,12]]},"template:docs/packages/testdouble-qunit":{"position":[[633,12]]}},"keywords":{}}],["instal",{"_index":45,"title":{},"text":{"template:docs/index":{"position":[[288,12]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[124,12],[144,7],[254,9],[290,7],[330,7]]},"template:docs/packages/testdouble-qunit":{"position":[[17,12],[37,7],[92,10],[157,7],[220,7]]}},"keywords":{}}],["installverifyassert",{"_index":84,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[312,22]]}},"keywords":{}}],["installverifyassertion(qunit",{"_index":85,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[360,29]]}},"keywords":{}}],["invoc",{"_index":22,"title":{},"text":{"template:docs/examples/call-count":{"position":[[511,12]]}},"keywords":{}}],["librari",{"_index":38,"title":{},"text":{"template:docs/index":{"position":[[57,7]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[156,8],[516,7]]},"template:docs/packages/testdouble-qunit":{"position":[[49,8],[406,7]]}},"keywords":{}}],["method",{"_index":41,"title":{},"text":{"template:docs/index":{"position":[[86,6]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[545,6]]},"template:docs/packages/testdouble-qunit":{"position":[[435,6]]}},"keywords":{}}],["miss",{"_index":61,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[275,8]]}},"keywords":{}}],["more",{"_index":20,"title":{},"text":{"template:docs/examples/call-count":{"position":[[481,4]]},"template:docs/examples/stubbing":{"position":[[224,4]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[738,4]]},"template:docs/packages/testdouble-qunit":{"position":[[628,4]]}},"keywords":{}}],["never",{"_index":5,"title":{},"text":{"template:docs/examples/call-count":{"position":[[54,5],[193,5],[332,5],[359,5]]}},"keywords":{}}],["npm",{"_index":78,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[149,3],[153,3]]}},"keywords":{}}],["number",{"_index":31,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[69,9],[110,8]]}},"keywords":{}}],["out",{"_index":74,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[762,3]]},"template:docs/packages/testdouble-qunit":{"position":[[652,3]]}},"keywords":{}}],["qunit",{"_index":37,"title":{},"text":{"template:docs/index":{"position":[[46,5],[96,5]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[218,6]]},"template:docs/packages/testdouble-qunit":{"position":[[58,5],[256,5],[267,8]]}},"keywords":{}}],["refer",{"_index":88,"title":{},"text":{"template:application-tailwind":{"position":[[23,9]]}},"keywords":{}}],["result",{"_index":26,"title":{"template:docs/examples/stubbing":{"position":[[9,7]]}},"text":{"template:docs/examples/stubbing":{"position":[[9,7],[253,8]]}},"keywords":{}}],["return",{"_index":28,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[46,6],[100,7]]}},"keywords":{}}],["returnsnumber(cb",{"_index":27,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[26,17]]}},"keywords":{}}],["run",{"_index":82,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[215,4]]}},"keywords":{}}],["save-dev",{"_index":79,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[165,10]]}},"keywords":{}}],["stub",{"_index":9,"title":{"template:docs/examples/stubbing":{"position":[[0,8]]}},"text":{"template:docs/examples/call-count":{"position":[[87,4],[226,4],[392,4]]},"template:docs/examples/stubbing":{"position":[[0,8],[244,8]]},"template:docs/index":{"position":[[35,5],[138,5],[176,4],[218,4]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[588,5],[626,4],[668,4]]},"template:docs/packages/testdouble-qunit":{"position":[[478,5],[516,4],[558,4]]}},"keywords":{}}],["stub('foo",{"_index":11,"title":{},"text":{"template:docs/examples/call-count":{"position":[[109,12],[248,12],[261,12]]},"template:docs/index":{"position":[[240,12]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[690,12]]},"template:docs/packages/testdouble-qunit":{"position":[[580,12]]}},"keywords":{}}],["style",{"_index":87,"title":{"template:application-tailwind":{"position":[[14,6]]}},"text":{"template:application-tailwind":{"position":[[14,6]]}},"keywords":{}}],["tailwind",{"_index":86,"title":{"template:application-tailwind":{"position":[[5,8]]}},"text":{"template:application-tailwind":{"position":[[5,8]]}},"keywords":{}}],["td",{"_index":83,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[283,2],[390,4]]}},"keywords":{}}],["td.function",{"_index":10,"title":{},"text":{"template:docs/examples/call-count":{"position":[[94,14],[233,14],[399,14]]},"template:docs/examples/stubbing":{"position":[[142,14]]},"template:docs/index":{"position":[[225,14]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[675,14]]},"template:docs/packages/testdouble-qunit":{"position":[[565,14]]}},"keywords":{}}],["td.when(cb()).thenreturn(42",{"_index":34,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[157,29]]}},"keywords":{}}],["test",{"_index":57,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[189,5]]},"template:docs/packages/testdouble-qunit":{"position":[[209,5]]}},"keywords":{}}],["test('stub",{"_index":4,"title":{},"text":{"template:docs/examples/call-count":{"position":[[40,10],[179,10],[345,10]]}},"keywords":{}}],["test('th",{"_index":32,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[81,9]]},"template:docs/index":{"position":[[166,9]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[616,9]]},"template:docs/packages/testdouble-qunit":{"position":[[506,9]]}},"keywords":{}}],["testdoubl",{"_index":24,"title":{},"text":{"template:docs/examples/call-count":{"position":[[536,10]]},"template:docs/examples/stubbing":{"position":[[274,10]]},"template:docs/index":{"position":[[24,10]]},"template:docs/packages/testdouble-qunit":{"position":[[68,10],[291,13]]}},"keywords":{}}],["testdouble-qunit",{"_index":36,"title":{"template:docs/index":{"position":[[0,16]]},"template:docs/packages/testdouble-qunit":{"position":[[0,16]]}},"text":{"template:docs/index":{"position":[[0,16]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[52,16]]},"template:docs/packages/testdouble-qunit":{"position":[[0,16],[126,16],[340,19]]}},"keywords":{}}],["testdouble-qunitnow",{"_index":80,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[176,20]]}},"keywords":{}}],["testdouble.j",{"_index":75,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[770,13]]},"template:docs/packages/testdouble-qunit":{"position":[[660,13]]}},"keywords":{}}],["tests/test-helper.j",{"_index":66,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[395,20],[425,20]]}},"keywords":{}}],["time",{"_index":14,"title":{},"text":{"template:docs/examples/call-count":{"position":[[303,6],[438,6]]}},"keywords":{}}],["true",{"_index":19,"title":{},"text":{"template:docs/examples/call-count":{"position":[[465,4]]}},"keywords":{}}],["twice",{"_index":13,"title":{},"text":{"template:docs/examples/call-count":{"position":[[173,5]]}},"keywords":{}}],["typeof",{"_index":29,"title":{},"text":{"template:docs/examples/stubbing":{"position":[[53,6]]}},"keywords":{}}],["usag",{"_index":72,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[505,5]]},"template:docs/packages/testdouble-qunit":{"position":[[395,5]]}},"keywords":{}}],["verifi",{"_index":0,"title":{"template:docs/examples/call-count":{"position":[[0,9]]}},"text":{"template:docs/examples/call-count":{"position":[[0,9],[501,9]]},"template:docs/index":{"position":[[17,6],[121,6]]},"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[571,6]]},"template:docs/packages/testdouble-qunit":{"position":[[461,6]]}},"keywords":{}}],["written",{"_index":59,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[207,7]]}},"keywords":{}}],["yarn",{"_index":76,"title":{},"text":{"template:docs/packages/testdouble-qunit":{"position":[[109,4],[114,4]]}},"keywords":{}}],["you'r",{"_index":70,"title":{},"text":{"template:docs/packages/ember-cli-testdouble-qunit":{"position":[[486,6]]}},"keywords":{}}]],"pipeline":["stemmer"]},"documents":{"template:docs/examples/call-count":{"id":"template:docs/examples/call-count","type":"template","title":"Verifying Call Count","text":"Verifying Call Count Function is called test('stub is never called', assert => { const stub = td.function(); stub('foo'); assert.verify(stub('foo')); }); Function is called twice test('stub is never called', assert => { const stub = td.function(); stub('foo'); stub('foo'); assert.verify(stub('foo'), { times: 2 }); }); Function is never called test('stub is never called', assert => { const stub = td.function(); assert.verify(stub(), { times: 0, ignoreExtraArgs: true }); });For more information on verifying invocations, consult the testdouble documentation.","route":"docs.examples.call-count","keywords":[]},"template:docs/examples/stubbing":{"id":"template:docs/examples/stubbing","type":"template","title":"Stubbing Results","text":"Stubbing Results function returnsNumber(cb) { return typeof cb() === 'number'; } test('the callback returns a number', assert => { const cb = td.function(); td.when(cb()).thenReturn(42); assert.ok(returnsNumber(cb)); });For more information on stubbing results, consult the testdouble documentation.","route":"docs.examples.stubbing","keywords":[]},"template:docs/index":{"id":"template:docs/index","type":"template","title":"testdouble-qunit","text":"testdouble-qunit Verify testdouble stubs with QUnit This library adds a assert.verify method to QUnit that allows you to verify that your stubs are called correctly. test('the stub is called', function(assert) { const stub = td.function(); stub('foo'); assert.verify(stub('foo')); });For installation information, go here: ","route":"docs.index","keywords":[]},"template:docs/packages/ember-cli-testdouble-qunit":{"id":"template:docs/packages/ember-cli-testdouble-qunit","type":"template","title":"ember-cli-testdouble-qunit","text":"ember-cli-testdouble-qunit This Ember addon exposes testdouble-qunit so that you can easily consume it in your application. Installation First, install the library. It is assumed that your tests are already written in QUnit; ember-cli-testdouble will be installed for you if missing. ember install ember-cli-testdouble-qunitNext, install the assertion helper. Add the following anywhere in your tests/test-helper.js file: // tests/test-helper.js import 'ember-cli-testdouble-qunit';And you're good to go! Usage This library adds a assert.verify method that allows you to verify that your stubs are called correctly. test('the stub is called', function(assert) { const stub = td.function(); stub('foo'); assert.verify(stub('foo')); });For more information, check out the testdouble.js documentation.","route":"docs.packages.ember-cli-testdouble-qunit","keywords":[]},"template:docs/packages/testdouble-qunit":{"id":"template:docs/packages/testdouble-qunit","type":"template","title":"testdouble-qunit","text":"testdouble-qunit Installation First, install the library. QUnit and testdouble must also be installed. # For Yarn yarn add -D testdouble-qunit # For NPM npm install --save-dev testdouble-qunitNow, before your tests run, install the assertion helper import QUnit from 'qunit'; import td from 'testdouble'; import installVerifyAssertion from 'testdouble-qunit'; installVerifyAssertion(QUnit, td); Usage This library adds a assert.verify method that allows you to verify that your stubs are called correctly. test('the stub is called', function(assert) { const stub = td.function(); stub('foo'); assert.verify(stub('foo')); });For more information, check out the testdouble.js documentation.","route":"docs.packages.testdouble-qunit","keywords":[]},"template:docs":{"id":"template:docs","type":"template","title":null,"text":" ","route":"docs","keywords":[]},"template:application-tailwind":{"id":"template:application-tailwind","type":"template","title":"Your Tailwind styles","text":" Your Tailwind styles A reference for every generated class in your app. ","route":"application-tailwind","keywords":[]},"template:docs/api/item":{"id":"template:docs/api/item","type":"template","title":null,"text":" ","route":"docs.api.item","keywords":[]}}}
