@@ -10,6 +10,7 @@ describe('export.svg', function () {
10
10
it ( 'GET /api/v1/sql with SVG format' , function ( done ) {
11
11
var query = querystring . stringify ( {
12
12
q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
13
+ api_key : 1234 ,
13
14
format : 'svg'
14
15
} ) ;
15
16
assert . response ( server , {
@@ -31,6 +32,7 @@ describe('export.svg', function () {
31
32
it ( 'POST /api/v1/sql with SVG format' , function ( done ) {
32
33
var query = querystring . stringify ( {
33
34
q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
35
+ api_key : 1234 ,
34
36
format : 'svg'
35
37
} ) ;
36
38
assert . response ( server , {
@@ -54,6 +56,7 @@ describe('export.svg', function () {
54
56
it ( 'GET /api/v1/sql with SVG format and custom filename' , function ( done ) {
55
57
var query = querystring . stringify ( {
56
58
q : 'SELECT 1 as cartodb_id, ST_MakeLine(ST_MakePoint(10, 10), ST_MakePoint(1034, 778)) AS the_geom ' ,
59
+ api_key : 1234 ,
57
60
format : 'svg' ,
58
61
filename : 'mysvg'
59
62
} ) ;
@@ -76,6 +79,7 @@ describe('export.svg', function () {
76
79
it ( 'GET /api/v1/sql with SVG format and centered point' , function ( done ) {
77
80
var query = querystring . stringify ( {
78
81
q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS the_geom ' ,
82
+ api_key : 1234 ,
79
83
format : 'svg'
80
84
} ) ;
81
85
assert . response ( server , {
@@ -98,6 +102,7 @@ describe('export.svg', function () {
98
102
it ( 'GET /api/v1/sql with SVG format and trimmed decimals' , function ( done ) {
99
103
var queryobj = {
100
104
q : "SELECT 1 as cartodb_id, 'LINESTRING(0 0, 1024 768, 500.123456 600.98765432)'::geometry AS the_geom " ,
105
+ api_key : 1234 ,
101
106
format : 'svg' ,
102
107
dp : 2
103
108
} ;
@@ -138,6 +143,7 @@ describe('export.svg', function () {
138
143
it ( 'SVG format with "the_geom" in skipfields' , function ( done ) {
139
144
var query = querystring . stringify ( {
140
145
q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS the_geom ' ,
146
+ api_key : 1234 ,
141
147
format : 'svg' ,
142
148
skipfields : 'the_geom'
143
149
} ) ;
@@ -160,6 +166,7 @@ describe('export.svg', function () {
160
166
it ( 'SVG format with missing "the_geom" field' , function ( done ) {
161
167
var query = querystring . stringify ( {
162
168
q : 'SELECT 1 as cartodb_id, ST_MakePoint(5000, -54) AS something_else ' ,
169
+ api_key : 1234 ,
163
170
format : 'svg'
164
171
} ) ;
165
172
assert . response ( server , {
@@ -182,6 +189,7 @@ describe('export.svg', function () {
182
189
{
183
190
url : '/api/v1/sql?' + querystring . stringify ( {
184
191
q : 'SELECT the_geom, 100/(cartodb_id - 3) cdb_ratio FROM untitle_table_4' ,
192
+ api_key : 1234 ,
185
193
format : 'svg'
186
194
} ) ,
187
195
headers : {
0 commit comments