From 3d65391f4798e085e41f7ef6db281901af0c068d Mon Sep 17 00:00:00 2001 From: Raymond Rutjes Date: Mon, 14 Aug 2017 22:03:56 +0200 Subject: [PATCH] revert(store): have highlighting tags return the current value --- src/__tests__/store.js | 8 ++++---- src/store.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/__tests__/store.js b/src/__tests__/store.js index 6bec1ce29..eeef8f807 100644 --- a/src/__tests__/store.js +++ b/src/__tests__/store.js @@ -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(''); + expect(store.highlightPostTag).toEqual(''); }); test('can retrieve index name', () => { @@ -346,8 +346,8 @@ describe('Store', () => { expect(store.queryParameters).toEqual( expect.objectContaining({ - highlightPreTag: undefined, - highlightPostTag: undefined, + highlightPreTag: '', + highlightPostTag: '', }) ); }); diff --git a/src/store.js b/src/store.js index bb0d450de..5ebed9d44 100644 --- a/src/store.js +++ b/src/store.js @@ -50,8 +50,8 @@ export class Store { // without trigger multiple queries. this._stoppedCounter = 1; - this._highlightPreTag = undefined; - this._highlightPostTag = undefined; + this._highlightPreTag = ''; + this._highlightPostTag = ''; this._cacheEnabled = true;