fix: 修复 gl jest-test 测试 (#1562)

Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
YiQianYao 2023-01-06 11:21:40 +08:00 committed by GitHub
parent 3bbc1eca78
commit 460679aebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 9 deletions

View File

@ -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)
})
});