IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit 6f1aea7e authored by James C. De Ricco's avatar James C. De Ricco
Browse files

map.test: Mock Leaflet Map.fitWorld method to fix tests

parent a425481f
......@@ -11,7 +11,10 @@ describe('c-map', () => {
const CONSOLE_ERROR = global.console.error;
const LeafletMap = class {
type = 'map';
constructor() {
this.type = 'map';
this.fitWorld = jest.fn();
}
};
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment