Skip to contentSkip to conversation

toaster: js tests Twitter typeahead library object is now ttTypeahead

PATCH New Michael Wood 1 participant 1 message Jun 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: js tests Twitter typeahead library object is now ttTypeahead

Get the ttTypeahead object on the input to see if it's been initialised correctly.

---
 bitbake/lib/toaster/toastergui/static/js/tests/test.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
bitbake/lib/toaster/toastergui/static/js/tests/test.js +4 -4
index 44b7522..f8d566b 100644
@@ -134,10 +134,10 @@ QUnit.test("Make typeaheads", function(assert){
   libtoaster.makeTypeahead(recipesT,
     libtoaster.ctx.recipesTypeAheadUrl, {}, function(){});
 
-  assert.ok(recipesT.data('typeahead'));
-  assert.ok(layersT.data('typeahead'));
-  assert.ok(projectsT.data('typeahead'));
-  assert.ok(recipesT.data('typeahead'));
+  assert.ok(recipesT.data('ttTypeahead'));
+  assert.ok(layersT.data('ttTypeahead'));
+  assert.ok(projectsT.data('ttTypeahead'));
+  assert.ok(recipesT.data('ttTypeahead'));
 });
 
 
Signature · 1 line
2.7.4