@@ -10,6 +10,7 @@ describe('export.svg', function () {
1010 it ( 'GET /api/v1/sql with SVG format' , function ( done ) {
1111 var query = querystring . stringify ( {
1212 q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
13+ api_key : 1234 ,
1314 format : 'svg'
1415 } ) ;
1516 assert . response ( server , {
@@ -31,6 +32,7 @@ describe('export.svg', function () {
3132 it ( 'POST /api/v1/sql with SVG format' , function ( done ) {
3233 var query = querystring . stringify ( {
3334 q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
35+ api_key : 1234 ,
3436 format : 'svg'
3537 } ) ;
3638 assert . response ( server , {
@@ -54,6 +56,7 @@ describe('export.svg', function () {
5456 it ( 'GET /api/v1/sql with SVG format and custom filename' , function ( done ) {
5557 var query = querystring . stringify ( {
5658 q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
59+ api_key : 1234 ,
5760 format : 'svg' ,
5861 filename : 'mysvg'
5962 } ) ;
@@ -76,6 +79,7 @@ describe('export.svg', function () {
7679 it ( 'GET /api/v1/sql with SVG format and centered point' , function ( done ) {
7780 var query = querystring . stringify ( {
7881 q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS the_geom ' ,
82+ api_key : 1234 ,
7983 format : 'svg'
8084 } ) ;
8185 assert . response ( server , {
@@ -98,6 +102,7 @@ describe('export.svg', function () {
98102 it ( 'GET /api/v1/sql with SVG format and trimmed decimals' , function ( done ) {
99103 var queryobj = {
100104 q : "SELECT 1 as cartodb_id, 'LINESTRING(0 0, 1024 768, 500.123456 600.98765432)'::geometry AS the_geom " ,
105+ api_key : 1234 ,
101106 format : 'svg' ,
102107 dp : 2
103108 } ;
@@ -138,6 +143,7 @@ describe('export.svg', function () {
138143 it ( 'SVG format with "the_geom" in skipfields' , function ( done ) {
139144 var query = querystring . stringify ( {
140145 q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS the_geom ' ,
146+ api_key : 1234 ,
141147 format : 'svg' ,
142148 skipfields : 'the_geom'
143149 } ) ;
@@ -160,6 +166,7 @@ describe('export.svg', function () {
160166 it ( 'SVG format with missing "the_geom" field' , function ( done ) {
161167 var query = querystring . stringify ( {
162168 q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS something_else ' ,
169+ api_key : 1234 ,
163170 format : 'svg'
164171 } ) ;
165172 assert . response ( server , {
@@ -182,6 +189,7 @@ describe('export.svg', function () {
182189 {
183190 url : '/api/v1/sql?' + querystring . stringify ( {
184191 q : 'SELECT the_geom, 100/(cartodb_id - 3) cdb_ratio FROM untitle_table_4' ,
192+ api_key : 1234 ,
185193 format : 'svg'
186194 } ) ,
187195 headers : {
0 commit comments