Add templateSrv to PostgresQuery tests

This commit is contained in:
Sven Klemm 2018-07-14 11:05:35 +02:00
parent b745fab190
commit d0c2b19c51

View File

@ -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);