Skip to content
Snippets Groups Projects
Commit 790bc25d authored by Jose Ivan Vargas Lopez's avatar Jose Ivan Vargas Lopez
Browse files

fix linter errors and karma specs

parent 228ecf36
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -145,7 +145,7 @@
this.graphData.queries[0],
this.graphWidth,
this.graphHeight,
this.graphHeightOffset
this.graphHeightOffset,
);
 
if (this.timeSeries.length > 3) {
Loading
Loading
Loading
Loading
@@ -292,6 +292,7 @@
> line {
stroke: $gray-darker;
}
> text {
font-size: 12px;
}
Loading
Loading
import Vue from 'vue';
import GraphPath from '~/monitoring/components/graph_path.vue';
import GraphPath from '~/monitoring/components/graph/path.vue';
import createTimeSeries from '~/monitoring/utils/multiple_time_series';
import { singleRowMetricsMultipleSeries, convertDatesMultipleSeries } from './mock_data';
 
Loading
Loading
Loading
Loading
@@ -44,7 +44,7 @@ describe('Graph', () => {
.not.toEqual(-1);
});
 
it('outterViewBox gets a width and height property based on the DOM size of the element', () => {
it('outerViewBox gets a width and height property based on the DOM size of the element', () => {
const component = createComponent({
graphData: convertedMetrics[1],
classType: 'col-md-6',
Loading
Loading
@@ -52,8 +52,8 @@ describe('Graph', () => {
deploymentData,
});
 
const viewBoxArray = component.outterViewBox.split(' ');
expect(typeof component.outterViewBox).toEqual('string');
const viewBoxArray = component.outerViewBox.split(' ');
expect(typeof component.outerViewBox).toEqual('string');
expect(viewBoxArray[2]).toEqual(component.graphWidth.toString());
expect(viewBoxArray[3]).toEqual(component.graphHeight.toString());
});
Loading
Loading
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