Skip to content

Commit eb3f0c1

Browse files
committed
【fix】UT
1 parent 06ea74b commit eb3f0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/leaflet/components/clientcomputation/ClientComputationViewSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('leaflet_clientcomputation_ClientComputationView', () => {
118118
setTimeout(() => {
119119
try {
120120
expect(document.getElementById('dropDownTop').getAttribute('data-value')).toBe("isolines");
121-
clientComputation.viewModel.on('layerloaded', (e) => {
121+
clientComputation.viewModel.once('layerloaded', (e) => {
122122
try {
123123
if (e.name.indexOf("等值线") > -1) {
124124
expect(e.layer._layers).not.toBeNull;
@@ -153,7 +153,7 @@ describe('leaflet_clientcomputation_ClientComputationView', () => {
153153
try {
154154
document.getElementById('dropDownTop').click();
155155
document.getElementsByClassName('component-dropdownbox__item')[2].click();
156-
clientComputation.viewModel.on('layerloaded', (e) => {
156+
clientComputation.viewModel.once('layerloaded', (e) => {
157157
try {
158158
if (e.name.indexOf("等值线") > -1) {
159159
expect(e.name.layer._layers).not.toBeNull;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy