From d0c2b19c51a94e4cb5e8d1393bc8e739e66594a9 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Sat, 14 Jul 2018 11:05:35 +0200 Subject: [PATCH] Add templateSrv to PostgresQuery tests --- .../plugins/datasource/postgres/specs/postgres_query.jest.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/plugins/datasource/postgres/specs/postgres_query.jest.ts b/public/app/plugins/datasource/postgres/specs/postgres_query.jest.ts index fc05441f985..ef8fdea951b 100644 --- a/public/app/plugins/datasource/postgres/specs/postgres_query.jest.ts +++ b/public/app/plugins/datasource/postgres/specs/postgres_query.jest.ts @@ -1,6 +1,10 @@ import PostgresQuery from '../postgres_query'; describe('PostgresQuery', function() { + let templateSrv = { + replace: jest.fn(text => text), + }; + describe('When initializing', function() { it('should not be in SQL mode', function() { let query = new PostgresQuery({}, templateSrv);