Skip to content

Commit

Permalink
Clean up console log in unit tests (#4866)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM authored Oct 21, 2024
1 parent a2f1450 commit cdc50e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/source/geojson_source.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ describe('GeoJSONSource#update', () => {
}));

test('forwards Supercluster options with worker request, ignore max zoom of source', () => new Promise<void>(done => {
jest.spyOn(console, 'warn').mockImplementation(() => {});
const mockDispatcher = wrapDispatcher({
sendAsync(message) {
expect(message.type).toBe(MessageType.loadData);
Expand Down
1 change: 0 additions & 1 deletion src/ui/camera.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3502,7 +3502,6 @@ describe('#flyTo globe projection', () => {
});

camera.on('moveend', () => {
console.log(leastZoom);
expect(zoomed).toBeTruthy();
done();
});
Expand Down

0 comments on commit cdc50e2

Please sign in to comment.