diff options
Diffstat (limited to 'spec/frontend/monitoring/components/embeds/metric_embed_spec.js')
-rw-r--r-- | spec/frontend/monitoring/components/embeds/metric_embed_spec.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/frontend/monitoring/components/embeds/metric_embed_spec.js b/spec/frontend/monitoring/components/embeds/metric_embed_spec.js index f23823ccad6..4e7fee81d66 100644 --- a/spec/frontend/monitoring/components/embeds/metric_embed_spec.js +++ b/spec/frontend/monitoring/components/embeds/metric_embed_spec.js @@ -4,6 +4,7 @@ import DashboardPanel from '~/monitoring/components/dashboard_panel.vue'; import { TEST_HOST } from 'helpers/test_constants'; import MetricEmbed from '~/monitoring/components/embeds/metric_embed.vue'; import { groups, initialState, metricsData, metricsWithData } from './mock_data'; +import { setHTMLFixture } from 'helpers/fixtures'; const localVue = createLocalVue(); localVue.use(Vuex); @@ -25,6 +26,8 @@ describe('MetricEmbed', () => { } beforeEach(() => { + setHTMLFixture('<div class="layout-page"></div>'); + actions = { setInitialState: jest.fn(), setShowErrorBanner: jest.fn(), |