Skip to content

Commit a073c01

Browse files
[fix]UT
1 parent fc3bf02 commit a073c01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/openlayers/control/ScaleLineSpec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ describe('openlayers_ScaleLine', () => {
9999
scaleControl.updateElementRepair();
100100
} catch (error) {
101101
expect(error.message).toBe('Invalid units');
102+
} finally {
103+
map.removeControl(scaleControl);
102104
done();
103105
}
104106
}, 100);

0 commit comments

Comments
 (0)