mirror of https://gitee.com/antv-l7/antv-l7
35 lines
640 B
TypeScript
35 lines
640 B
TypeScript
|
// import { WorldLayer } from '@antv/l7-district';
|
||
|
describe('baseLayer', () => {
|
||
|
it('set option', () => {
|
||
|
const option = {
|
||
|
adcode: [],
|
||
|
data: [
|
||
|
{
|
||
|
name: 1,
|
||
|
code: 2,
|
||
|
},
|
||
|
{
|
||
|
name: 2,
|
||
|
code: 3,
|
||
|
},
|
||
|
{
|
||
|
name: 3,
|
||
|
code: 4,
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
// @ts-ignore
|
||
|
// const layer = new WorldLayer(null, option);
|
||
|
// layer.setOption({
|
||
|
// data: [
|
||
|
// {
|
||
|
// name: 1,
|
||
|
// code: 4,
|
||
|
// },
|
||
|
// ],
|
||
|
// });
|
||
|
// // @ts-ignore
|
||
|
// expect(layer.options.data.length).toBe(1);
|
||
|
});
|
||
|
});
|