diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-22 19:43:25 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-02-23 00:21:57 +0200 |
commit | 2b44c4b096bbe49d2d1d7c3e17f7e7fee825cb41 (patch) | |
tree | e2a885edf260357434c5bc6780247bd53f08c5ae /test/storage/server.js | |
parent | d836638407c7eae66fdf4b27f596391c591baeab (diff) | |
download | qtlocation-mapboxgl-2b44c4b096bbe49d2d1d7c3e17f7e7fee825cb41.tar.gz |
[tests] Add utests for HTTP 200 with no data
The implementation should return a valid empty string.
Diffstat (limited to 'test/storage/server.js')
-rwxr-xr-x | test/storage/server.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/storage/server.js b/test/storage/server.js index 16b507daa9..d15544a0fd 100755 --- a/test/storage/server.js +++ b/test/storage/server.js @@ -84,6 +84,10 @@ app.get('/revalidate-etag', function(req, res) { revalidateEtagCounter++; }); +app.get('/empty-data', function(req, res) { + res.status(200).send(); +}); + app.get('/no-content', function(req, res) { res.status(204).send(); }); |