Skip to content

Commit cdc50e2

Browse files
authored
Clean up console log in unit tests (#4866)
1 parent a2f1450 commit cdc50e2

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/source/geojson_source.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ describe('GeoJSONSource#update', () => {
302302
}));
303303

304304
test('forwards Supercluster options with worker request, ignore max zoom of source', () => new Promise<void>(done => {
305+
jest.spyOn(console, 'warn').mockImplementation(() => {});
305306
const mockDispatcher = wrapDispatcher({
306307
sendAsync(message) {
307308
expect(message.type).toBe(MessageType.loadData);

src/ui/camera.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3502,7 +3502,6 @@ describe('#flyTo globe projection', () => {
35023502
});
35033503

35043504
camera.on('moveend', () => {
3505-
console.log(leastZoom);
35063505
expect(zoomed).toBeTruthy();
35073506
done();
35083507
});

0 commit comments

Comments
 (0)