Organize tests
This commit is contained in:
15
test/browser/spec/ol/source/cartodb.test.js
Normal file
15
test/browser/spec/ol/source/cartodb.test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import CartoDB from '../../../../../src/ol/source/CartoDB.js';
|
||||
import XYZ from '../../../../../src/ol/source/XYZ.js';
|
||||
|
||||
describe('ol.source.CartoDB', function () {
|
||||
describe('constructor', function () {
|
||||
it('returns a CartoDB source', function () {
|
||||
const source = new CartoDB({
|
||||
account: 'documentation',
|
||||
config: {},
|
||||
});
|
||||
expect(source).to.be.a(XYZ);
|
||||
expect(source).to.be.a(CartoDB);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user