mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复 gl jest-test 测试 (#1562)
Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
parent
3bbc1eca78
commit
460679aebd
|
@ -3,13 +3,7 @@ import { TestScene } from '@antv/l7-test-utils';
|
|||
import PointLayer from '../';
|
||||
|
||||
describe('template', () => {
|
||||
|
||||
it('1', async () => {
|
||||
|
||||
expect('1').toEqual('1')
|
||||
|
||||
});
|
||||
|
||||
|
||||
const el = document.createElement('div');
|
||||
el.id = 'test-div-id';
|
||||
const body = document.querySelector('body') as HTMLBodyElement;
|
||||
|
@ -67,7 +61,7 @@ describe('template', () => {
|
|||
expect(layer.name).toEqual('text')
|
||||
})
|
||||
|
||||
// scene.addLayer(layer)
|
||||
scene.addLayer(layer)
|
||||
|
||||
|
||||
});
|
||||
|
@ -104,7 +98,9 @@ describe('template', () => {
|
|||
).shape('simple')
|
||||
.color('red')
|
||||
.size(1)
|
||||
scene.addLayer(layer)
|
||||
scene.on('loaded', () =>{
|
||||
scene.addLayer(layer)
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue