Skip to content

Commit

Permalink
add test for space-in-path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbma44 committed Nov 15, 2014
1 parent a325080 commit ade37d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added test/fixtures/path with space/plain_1.mbtiles
Binary file not shown.
9 changes: 9 additions & 0 deletions test/load.test.js
Expand Up @@ -142,6 +142,15 @@ test('loading: should load metadata from an existing tilejson file', function(t)
});
});

test('loading: should load mbtiles file from a path containing a space', function(t) {
tilelive.info('mbtiles://' + __dirname + '/fixtures/path with space/plain_1.mbtiles', function(err, info, handler) {
if (err) throw err;
t.deepEqual(info, data[2]);
handler.close(t.end);
});
});


test('loading: should load all tile sources in a directory', function(t) {
tilelive.all(__dirname + '/fixtures', function(err, info, handlers) {
if (err) throw err;
Expand Down

0 comments on commit ade37d5

Please sign in to comment.