1
0
Fork 0
Commit graph

26 commits

Author SHA1 Message Date
Kaelig Deloumeau-Prigent
4e75ee7787 Hide separators to screen readers (#164) 2017-02-08 12:07:13 +01:00
Maxime Locqueville
de36e1ca5d display(highlighting): improve for camel_case 2016-12-13 11:39:27 +01:00
Sylvain Utard
6ba59acc4e chore(test+lint): fixed tests & linting (#134) 2016-08-03 14:14:29 -07:00
Maxime Locqueville
2a3b7ebd59 feat(DOM): split simple and collumns template 2016-06-21 23:25:23 +02:00
maxiloc
f0a7e6bc92 feat(v2): modification for v2 (#112)
- Add a no result screen. Fixes #92
- Change class prefix. Fixes #102
- Add a transformData option
- Add searchBox option
- Add a layout option
2016-06-14 16:54:48 +02:00
maxiloc
4ab69a3b9b V2 modifs (#110)
* feat(dom): wrap separator with a span

* feat(option,dom): add debug to root class + add duplicate class on subcategory and title

* fix(dom): do not display content wrapper if there is nothing inside
2016-06-12 19:50:09 +02:00
maxiloc
94218977bc feat(DOM): add an align class (#108) 2016-06-10 17:43:55 +02:00
Sylvain UTARD
e4705b34bd chore(groupBy): consider lowercase forms of keys
Fix #85
2016-03-24 16:09:47 +01:00
Sylvain UTARD
b284dda7a9 fix(algoliaOptions): ensure we keep default options
While overriding the algoliaOptions, we were losing the default
hitsPerPage query parameters.

Fix #78
2016-03-10 22:20:47 +01:00
Pixelastic
ac75e0b8a5 test(formatURL): Add tests for formatURL 2016-01-26 17:38:32 +01:00
Pixelastic
7135ccc140 chore(lint): Make the js linter happy 2016-01-20 16:14:09 +01:00
Sylvain Utard
0f20b7c0e6 Merge pull request #60 from algolia/fix/53
fix(url): Removes concatenation of URL with hash if it contains a hash
2015-12-28 13:55:04 +01:00
Alexandre Stanislawski
348df1cb1b fix(url): Removes concatenation of URL with hash if it contains a hash
FIX #53
2015-12-28 11:30:50 +01:00
Sylvain UTARD
970b863c29 test(handleSelected): add test on handleSelected 2015-12-24 14:54:25 +01:00
Pixelastic
ae4a8810f8 test(getSuggestionTemplate): Add tests for the suggestion template 2015-12-22 21:46:10 +01:00
Tim Carry
fc041337ff Merge pull request #31 from algolia/fix/override-appid
fix(appId): Allow passing a custom appId
2015-12-22 10:46:15 +01:00
Pixelastic
e1777d31a7 fix(appId): Allow passing a custom appId
This should let developpers use it in a dev environment.
Fixes #21
cc @maxiloc
2015-12-21 17:02:33 +01:00
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
Pixelastic
a906d8c9da test(checkArguments): Add tests for checkArguments 2015-12-16 18:04:43 +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
892b43c90e Adding first stripe example
utils methods are here, using native/zepto instead of lodash
2015-12-10 10:34:00 +01:00
Pixelastic
0d316f14e0 Add testing scaffold 2015-12-04 11:21:27 +01:00