1
0
Fork 0
docsearch/src/lib
Pixelastic 7b6c219a7e test(getAutocompleteSource): Add tests for source
I had to change some methods to static to be able to tests them
without instantiating a new DocSearch. I also used better `restore`
methods of sinon.js.

I did not manage to correctly test the promise returned by the method
returned by getAutocompleteSource. I would have like to test that when
resolved it correctly call reformatHits on the data as well as call
the callback on the reformated hits but got confused in
spying/stubbing/mocking the promise.
2015-12-18 16:44:43 +01:00
..
DocSearch.js test(getAutocompleteSource): Add tests for source 2015-12-18 16:44:43 +01:00
main.js chore(version): add specific algolia agent and version 2015-12-15 15:33:02 +01:00
templates.js test(DocSearch): Add tests for constructor 2015-12-18 13:17:25 +01:00
utils.js test(utils): Add tests for getSnippettedValue 2015-12-15 14:37:20 +01:00
version.js v0.0.6 2015-12-16 12:13:30 +01:00