Pixelastic
cfcbe1e261
test(formatHits): Add tests for formatHits
...
The main logic of the library: splitting a set of 5 results into
a neatly ordered array, to be able to display it as two columns in
Hogan.
2015-12-21 16:56:53 +01:00
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
Pixelastic
6780cbcfb1
test(DocSearch): Add tests for constructor
2015-12-18 16:41:26 +01:00
Pixelastic
be367eb20b
test(DocSearch): Add tests for constructor
2015-12-18 13:17:25 +01:00
Sylvain UTARD
b24a4495c9
chore(branding): add footer with the Algolia logo
2015-12-16 21:42:22 +01:00
Tim Carry
03699cf22e
Merge pull request #13 from algolia/chore/release-process
...
chore(release): add release process
2015-12-16 11:00:16 +01:00
Pixelastic
751dfdb107
fix(snippet): Fix typo in method name
2015-12-15 17:25:32 +01:00
vvo
84acdd3247
chore(version): add specific algolia agent and version
2015-12-15 15:33:02 +01:00
Pixelastic
17f04d56dd
test(utils): Add tests for getSnippettedValue
...
Same underlying logic than getHighlightedValue, but also add prefix
and suffix ellipsis (…) when we detect that a snippet is truncating
a sentence.
2015-12-15 14:37:20 +01:00
Pixelastic
f818745fbb
test(utils): Add tests for getHighlightedValue
2015-12-15 14:14:03 +01:00
Pixelastic
4ed73b19b3
Add styling up to small screen
2015-12-14 16:42:48 +01:00
Pixelastic
beb3f15040
Update build and serve scripts and renamed to docsearch
2015-12-10 18:44:57 +01:00