antv-l7/packages/boundary/__tests__/layer.spec.ts

35 lines
640 B
TypeScript
Raw Normal View History

2020-06-24 16:39:03 +08:00
// import { WorldLayer } from '@antv/l7-district';
2020-05-09 11:26:43 +08:00
describe('baseLayer', () => {
it('set option', () => {
const option = {
adcode: [],
2020-06-24 15:57:34 +08:00
data: [
{
name: 1,
code: 2,
},
{
name: 2,
code: 3,
},
{
name: 3,
code: 4,
},
],
2020-05-09 11:26:43 +08:00
};
2020-06-24 15:57:34 +08:00
// @ts-ignore
2020-06-24 16:39:03 +08:00
// const layer = new WorldLayer(null, option);
// layer.setOption({
// data: [
// {
// name: 1,
// code: 4,
// },
// ],
// });
// // @ts-ignore
// expect(layer.options.data.length).toBe(1);
2020-05-09 11:26:43 +08:00
});
});