add public_url option
This commit is contained in:
@@ -8,7 +8,8 @@ before(function() {
|
||||
process.chdir('test_data');
|
||||
var running = require('../src/server')({
|
||||
configPath: 'config.json',
|
||||
port: 8888
|
||||
port: 8888,
|
||||
publicUrl: '/test/'
|
||||
});
|
||||
global.app = running.app;
|
||||
global.server = running.server;
|
||||
|
||||
@@ -23,6 +23,7 @@ describe('Styles', function() {
|
||||
res.body.sources.should.be.Object();
|
||||
res.body.glyphs.should.be.String();
|
||||
res.body.sprite.should.be.String();
|
||||
res.body.sprite.should.equal('/test/styles/test-style/sprite');
|
||||
res.body.layers.should.be.Array();
|
||||
}).end(done);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user