Skip to content

Commit

Permalink
fix(test): add missing Snippet and Highliter snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuret authored and bobylito committed Jan 9, 2017
1 parent 17e2497 commit 4accce5
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Snippet', () => {
const hitFromAPI = {
objectID: 0,
deep: {attribute: {value: 'awesome highlighted hit!'}},
_snippetResults: {
_snippetResult: {
deep: {attribute: {value: {
value: 'awesome <ais-highlight>hi</ais-highlight>ghlighted <ais-highlight>hi</ais-highlight>t!',
fullyHighlighted: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
exports[`Highlighter parses an highlighted attribute of hit object 1`] = `
<span
className="ais-Highlight">
<span
className="ais-Highlight__nonHighlighted">
awesome
</span>
<em
className="ais-Highlight__highlighted">
hi
</em>
<span
className="ais-Highlight__nonHighlighted">
ghlighted
</span>
<em
className="ais-Highlight__highlighted">
hi
</em>
<span
className="ais-Highlight__nonHighlighted">
t!
</span>
</span>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
exports[`Snippet parses an highlighted snippet attribute of hit object 1`] = `
<span
className="ais-Highlight">
<span
className="ais-Highlight__nonHighlighted">
awesome
</span>
<em
className="ais-Highlight__highlighted">
hi
</em>
<span
className="ais-Highlight__nonHighlighted">
ghlighted
</span>
<em
className="ais-Highlight__highlighted">
hi
</em>
<span
className="ais-Highlight__nonHighlighted">
t!
</span>
</span>
`;

0 comments on commit 4accce5

Please sign in to comment.