Skip to content
Snippets Groups Projects

Wdfn 768 - Convert the legend component to vue

Merged Williams, Darius Shamar requested to merge dswilliams/waterdataui:wdfn-768 into main
All threads resolved!
1 file
+ 16
21
Compare changes
  • Side-by-side
  • Inline
@@ -3,8 +3,6 @@ import {mount} from '@vue/test-utils';
import config from 'ui/config';
import * as utils from 'ui/utils';
import {configureStore} from 'ml/store';
import {TEST_PRIMARY_IV_DATA, TEST_GW_LEVELS} from '../mock-hydrograph-state';
import HydrographLegend from './hydrograph-legend.vue';
@@ -112,24 +110,21 @@ describe('monitoring-location/components/hydrograph/legend module', () => {
utils.mediaQuery = jest.fn().mockReturnValue(true);
describe('HydrographLegend', () => {
let store;
let wrapper;
beforeEach(() => {
store = configureStore(TEST_STATE);
wrapper = mount(HydrographLegend, {
props: {
legendMarkerRows: getLegendMarkerRows(TEST_STATE),
layout: {
"width": 992,
"height": 496,
"windowWidth": 1041,
"margin": {
"bottom": 5,
"top": 25,
"left": 55,
"right": 25
'width': 992,
'height': 496,
'windowWidth': 1041,
'margin': {
'bottom': 5,
'top': 25,
'left': 55,
'right': 25
}
}
}
@@ -145,14 +140,14 @@ describe('monitoring-location/components/hydrograph/legend module', () => {
props: {
legendMarkerRows: getDVLegendMarkerRows(DV_TEST_STATE),
layout: {
"width": 992,
"height": 496,
"windowWidth": 1041,
"margin": {
"bottom": 5,
"top": 25,
"left": 55,
"right": 25
'width': 992,
'height': 496,
'windowWidth': 1041,
'margin': {
'bottom': 5,
'top': 25,
'left': 55,
'right': 25
}
}
}
Loading