check for correct quoting of multiple singlequotes

This commit is contained in:
Sven Klemm 2018-08-29 16:50:59 +02:00
parent 70daa56a31
commit a87b27c7d3

View File

@ -230,6 +230,7 @@ describe('PostgreSQLDatasource', function() {
it('should return a quoted value', () => {
ctx.variable.multi = true;
expect(ctx.ds.interpolateVariable("a'bc", ctx.variable)).toEqual("'a''bc'");
expect(ctx.ds.interpolateVariable("a'b'c", ctx.variable)).toEqual("'a''b''c'");
});
});