mirror of https://gitee.com/antv-l7/antv-l7
test(boundry): boundry test
This commit is contained in:
parent
42d04e3c57
commit
8ca481a487
|
@ -1,4 +1,4 @@
|
|||
import BaseLayer from '../src/layer/baseLayer';
|
||||
// import { WorldLayer } from '@antv/l7-district';
|
||||
describe('baseLayer', () => {
|
||||
it('set option', () => {
|
||||
const option = {
|
||||
|
@ -19,16 +19,16 @@ describe('baseLayer', () => {
|
|||
],
|
||||
};
|
||||
// @ts-ignore
|
||||
const layer = new BaseLayer(null, option);
|
||||
layer.setOption({
|
||||
data: [
|
||||
{
|
||||
name: 1,
|
||||
code: 4,
|
||||
},
|
||||
],
|
||||
});
|
||||
// @ts-ignore
|
||||
expect(layer.options.data.length).toBe(1);
|
||||
// const layer = new WorldLayer(null, option);
|
||||
// layer.setOption({
|
||||
// data: [
|
||||
// {
|
||||
// name: 1,
|
||||
// code: 4,
|
||||
// },
|
||||
// ],
|
||||
// });
|
||||
// // @ts-ignore
|
||||
// expect(layer.options.data.length).toBe(1);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue