Skip to content
Snippets Groups Projects
Commit 767b53c2 authored by Williams, Darius Shamar's avatar Williams, Darius Shamar
Browse files

lint

parent c3ae507e
No related branches found
No related tags found
1 merge request!421Wdfn 768 - Convert the legend component to vue
This commit is part of merge request !421. Comments created here will be created in the context of that merge request.
...@@ -3,8 +3,6 @@ import {mount} from '@vue/test-utils'; ...@@ -3,8 +3,6 @@ import {mount} from '@vue/test-utils';
import config from 'ui/config'; import config from 'ui/config';
import * as utils from 'ui/utils'; import * as utils from 'ui/utils';
import {configureStore} from 'ml/store';
import {TEST_PRIMARY_IV_DATA, TEST_GW_LEVELS} from '../mock-hydrograph-state'; import {TEST_PRIMARY_IV_DATA, TEST_GW_LEVELS} from '../mock-hydrograph-state';
import HydrographLegend from './hydrograph-legend.vue'; import HydrographLegend from './hydrograph-legend.vue';
...@@ -112,24 +110,21 @@ describe('monitoring-location/components/hydrograph/legend module', () => { ...@@ -112,24 +110,21 @@ describe('monitoring-location/components/hydrograph/legend module', () => {
utils.mediaQuery = jest.fn().mockReturnValue(true); utils.mediaQuery = jest.fn().mockReturnValue(true);
describe('HydrographLegend', () => { describe('HydrographLegend', () => {
let store;
let wrapper; let wrapper;
beforeEach(() => { beforeEach(() => {
store = configureStore(TEST_STATE);
wrapper = mount(HydrographLegend, { wrapper = mount(HydrographLegend, {
props: { props: {
legendMarkerRows: getLegendMarkerRows(TEST_STATE), legendMarkerRows: getLegendMarkerRows(TEST_STATE),
layout: { layout: {
"width": 992, 'width': 992,
"height": 496, 'height': 496,
"windowWidth": 1041, 'windowWidth': 1041,
"margin": { 'margin': {
"bottom": 5, 'bottom': 5,
"top": 25, 'top': 25,
"left": 55, 'left': 55,
"right": 25 'right': 25
} }
} }
} }
...@@ -145,14 +140,14 @@ describe('monitoring-location/components/hydrograph/legend module', () => { ...@@ -145,14 +140,14 @@ describe('monitoring-location/components/hydrograph/legend module', () => {
props: { props: {
legendMarkerRows: getDVLegendMarkerRows(DV_TEST_STATE), legendMarkerRows: getDVLegendMarkerRows(DV_TEST_STATE),
layout: { layout: {
"width": 992, 'width': 992,
"height": 496, 'height': 496,
"windowWidth": 1041, 'windowWidth': 1041,
"margin": { 'margin': {
"bottom": 5, 'bottom': 5,
"top": 25, 'top': 25,
"left": 55, 'left': 55,
"right": 25 'right': 25
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment