Skip to content

Commit

Permalink
Update meta test to mock 'getHttp'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Jul 9, 2020
1 parent 7f5b7f7 commit e0eec47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x-pack/plugins/maps/public/meta.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ describe('getGlyphUrl', () => {
beforeAll(() => {
require('./kibana_services').getIsEmsEnabled = () => true;
require('./kibana_services').getEmsFontLibraryUrl = () => EMS_FONTS_URL_MOCK;
require('./kibana_services').getHttp = () => ({
basePath: {
prepend: (url) => url, // No need to actually prepend a dev basepath for test
},
});
});

describe('EMS proxy enabled', () => {
Expand Down

0 comments on commit e0eec47

Please sign in to comment.