mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add templateSrv to PostgresQuery tests
This commit is contained in:
parent
b745fab190
commit
d0c2b19c51
@ -1,6 +1,10 @@
|
|||||||
import PostgresQuery from '../postgres_query';
|
import PostgresQuery from '../postgres_query';
|
||||||
|
|
||||||
describe('PostgresQuery', function() {
|
describe('PostgresQuery', function() {
|
||||||
|
let templateSrv = {
|
||||||
|
replace: jest.fn(text => text),
|
||||||
|
};
|
||||||
|
|
||||||
describe('When initializing', function() {
|
describe('When initializing', function() {
|
||||||
it('should not be in SQL mode', function() {
|
it('should not be in SQL mode', function() {
|
||||||
let query = new PostgresQuery({}, templateSrv);
|
let query = new PostgresQuery({}, templateSrv);
|
||||||
|
Loading…
Reference in New Issue
Block a user