cartodb/lib/assets/test/spec/builder/data/static-asset-model.spec.js
2020-06-15 10:58:47 +08:00

14 lines
454 B
JavaScript

var StaticAssetModel = require('builder/data/static-asset-model');
describe('data/static-asset-model', function () {
beforeEach(function () {
this.model = new StaticAssetModel();
});
describe('.getUrlFor', function () {
it('should return the proper URL', function () {
expect(this.model.getURLFor('paella'))
.toEqual('https://s3.amazonaws.com/com.cartodb.users-assets.production/maki-icons/paella-18.svg');
});
});
});