Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
revert(store): have highlighting tags return the current value
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Aug 14, 2017
1 parent c146b16 commit 3d65391
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ describe('Store', () => {
test('should default highlighting tags should be undefined', () => {
const store = createStore();

expect(store.highlightPreTag).toEqual(undefined);
expect(store.highlightPostTag).toEqual(undefined);
expect(store.highlightPreTag).toEqual('<em>');
expect(store.highlightPostTag).toEqual('</em>');
});

test('can retrieve index name', () => {
Expand Down Expand Up @@ -346,8 +346,8 @@ describe('Store', () => {

expect(store.queryParameters).toEqual(
expect.objectContaining({
highlightPreTag: undefined,
highlightPostTag: undefined,
highlightPreTag: '<em>',
highlightPostTag: '</em>',
})
);
});
Expand Down
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class Store {
// without trigger multiple queries.
this._stoppedCounter = 1;

this._highlightPreTag = undefined;
this._highlightPostTag = undefined;
this._highlightPreTag = '<em>';
this._highlightPostTag = '</em>';

this._cacheEnabled = true;

Expand Down

0 comments on commit 3d65391

Please sign in to comment.