Skip to content

Commit

Permalink
Update test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Apr 1, 2020
1 parent de14e51 commit 9a3e560
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

jest.mock('../meta', () => {
jest.mock('../../../../../plugins/maps/public/meta', () => {
return {};
});
jest.mock('../kibana_services');
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('Saved object has layer list', () => {

describe('kibana.yml configured with map.tilemap.url', () => {
beforeAll(() => {
require('../meta').getKibanaTileMap = () => {
require('../../../../../plugins/maps/public/meta').getKibanaTileMap = () => {
return {
url: 'myTileUrl',
};
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('kibana.yml configured with map.tilemap.url', () => {

describe('EMS is enabled', () => {
beforeAll(() => {
require('../meta').getKibanaTileMap = () => {
require('../../../../../plugins/maps/public/meta').getKibanaTileMap = () => {
return null;
};
require('../kibana_services').getInjectedVarFunc = () => key => {
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('EMS is enabled', () => {

describe('EMS is not enabled', () => {
beforeAll(() => {
require('../meta').getKibanaTileMap = () => {
require('../../../../../plugins/maps/public/meta').getKibanaTileMap = () => {
return null;
};

Expand Down

0 comments on commit 9a3e560

Please sign in to comment.