Commit 6156edf2 authored by Miguel Rincon's avatar Miguel Rincon

Fix embed specs

parent 45997a4d
...@@ -61,8 +61,8 @@ describe('Embed', () => { ...@@ -61,8 +61,8 @@ describe('Embed', () => {
describe('metrics are available', () => { describe('metrics are available', () => {
beforeEach(() => { beforeEach(() => {
store.state.monitoringDashboard.groups = groups; store.state.monitoringDashboard.dashboard.panel_groups = groups;
store.state.monitoringDashboard.groups[0].metrics = metricsData; store.state.monitoringDashboard.dashboard.panel_groups[0].metrics = metricsData;
store.state.monitoringDashboard.metricsWithData = metricsWithData; store.state.monitoringDashboard.metricsWithData = metricsWithData;
mountComponent(); mountComponent();
......
...@@ -81,7 +81,9 @@ export const metricsData = [ ...@@ -81,7 +81,9 @@ export const metricsData = [
export const initialState = { export const initialState = {
monitoringDashboard: {}, monitoringDashboard: {},
groups: [], dashboard: {
panel_groups: [],
},
metricsWithData: [], metricsWithData: [],
useDashboardEndpoint: true, useDashboardEndpoint: true,
}; };
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