Give more detail on test failure
This commit is contained in:
parent
b0d0d4d073
commit
62e5d2b73c
@ -27,9 +27,10 @@ test('invalid api key should NOT allow insert in protected tables', function(don
|
|||||||
|
|
||||||
headers: {host: 'vizzuality.cartodb.com' },
|
headers: {host: 'vizzuality.cartodb.com' },
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
},{
|
},{}, function(res) {
|
||||||
status: 400
|
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
|
||||||
}, function() { done(); });
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('invalid api key (old redis location) should NOT allow insert in protected tables', function(done){
|
test('invalid api key (old redis location) should NOT allow insert in protected tables', function(done){
|
||||||
@ -39,9 +40,10 @@ test('invalid api key (old redis location) should NOT allow insert in protected
|
|||||||
|
|
||||||
headers: {host: 'vizzuality.cartodb.com' },
|
headers: {host: 'vizzuality.cartodb.com' },
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
},{
|
},{}, function(res) {
|
||||||
status: 400
|
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
|
||||||
}, function() { done(); });
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('no api key should NOT allow insert in protected tables', function(done){
|
test('no api key should NOT allow insert in protected tables', function(done){
|
||||||
@ -51,9 +53,10 @@ test('no api key should NOT allow insert in protected tables', function(done){
|
|||||||
|
|
||||||
headers: {host: 'vizzuality.cartodb.com' },
|
headers: {host: 'vizzuality.cartodb.com' },
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
},{
|
},{}, function(res) {
|
||||||
status: 400
|
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
|
||||||
}, function() { done(); });
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
test('no api key should NOT allow insert in public tables', function(done){
|
test('no api key should NOT allow insert in public tables', function(done){
|
||||||
@ -63,9 +66,10 @@ test('no api key should NOT allow insert in public tables', function(done){
|
|||||||
|
|
||||||
headers: {host: 'vizzuality.cartodb.com' },
|
headers: {host: 'vizzuality.cartodb.com' },
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
},{
|
},{}, function(res) {
|
||||||
status: 400
|
assert.equal(res.statusCode, 400, res.statusCode + ': ' + res.body);
|
||||||
}, function() { done(); });
|
done();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user