Skip to content

Commit 4e4ccf7

Browse files
【UT】fix ut
1 parent b766efe commit 4e4ccf7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/openlayers/overlay/GraphicSpec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,17 +363,12 @@ describe('openlayers_GraphicLayer', () => {
363363
if (graphicLayer.getSource().renderer) {
364364
unByKey(key);
365365
const graphic = graphicLayer.getSource().getGraphicsByAttribute("name", "graphic_1");
366-
const key1 = graphic[0].on('postrender', function() {
367-
if (graphic[0].getSource().renderer) {
368-
unByKey(key1);
369366
expect(graphic).not.toBeNull();
370367
expect(graphic[0].getAttributes().name).toBe("graphic_1");
371368
// map.removeLayer(graphicLayer);
372369
done();
373370
}
374371
})
375-
}
376-
});
377372
});
378373

379374
it("removeGraphics", (done) => {

0 commit comments

Comments
 (0)