Skip to content

Commit

Permalink
Fix test for reals
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Nov 2, 2020
1 parent 5f7c9ab commit f1b515d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* specific language governing permissions and limitations
* under the License.
*/
import { from } from 'rxjs';

import { of } from 'rxjs';
import es from './index';
import tlConfigFn from '../fixtures/tl_config';
import * as aggResponse from './lib/agg_response_to_series_list';
Expand All @@ -35,7 +35,7 @@ describe('es', () => {

function stubRequestAndServer(response, indexPatternSavedObjects = []) {
return {
context: { search: { search: () => from(Promise.resolve(response)) } },
context: { search: { search: jest.fn().mockReturnValue(of(response)) } },
savedObjectsClient: {
find: function () {
return Promise.resolve({
Expand Down

0 comments on commit f1b515d

Please sign in to comment.