Update and add tests

This commit is contained in:
Petr Sloup
2016-03-11 11:27:17 +01:00
parent 8a46bd8b88
commit 1c73c14d84
5 changed files with 94 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
var testStatic = function(prefix, q, format, status, scale, type) {
if (scale) q += '@' + scale + 'x';
var path = '/' + prefix + '/static/' + q + '.' + format;
var path = '/static/' + prefix + '/' + q + '.' + format;
it(path + ' returns ' + status, function(done) {
var test = supertest(app).get(path);
if (status) test.expect(status);