1
0
Fork 0
docsearch/src
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
..
lib test(getAutocompleteSource): Add tests for source 2015-12-18 16:44:43 +01:00
styles Merge pull request #18 from algolia/add-branding 2015-12-17 21:24:19 +01:00