1
0
Fork 0
docsearch/test
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
..
fixtures test(checkArguments): Add tests for checkArguments 2015-12-16 18:04:43 +01:00
DocSearch-test.js test(getAutocompleteSource): Add tests for source 2015-12-18 16:44:43 +01:00
helpers.js test(DocSearch): Add tests for constructor 2015-12-18 13:17:25 +01:00
mocha.opts Add testing scaffold 2015-12-04 11:21:27 +01:00
utils-test.js test(DocSearch): Add tests for constructor 2015-12-18 13:17:25 +01:00