Skip to content

Commit

Permalink
[MOV] tests: move gauge and scorecard tests to their own folders
Browse files Browse the repository at this point in the history
Task: 4170179
Part-of: #4971
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
  • Loading branch information
hokolomopo committed Sep 20, 2024
1 parent b9e466c commit 1c1ed5a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ChartCreationContext, CommandResult, Model } from "../../../src";
import { deepCopy, zoneToXc } from "../../../src/helpers";
import { GaugeChart } from "../../../src/helpers/figures/charts";
import { ChartCreationContext, CommandResult, Model } from "../../../../src";
import { deepCopy, zoneToXc } from "../../../../src/helpers";
import { GaugeChart } from "../../../../src/helpers/figures/charts";
import {
GaugeChartDefinition,
GaugeChartRuntime,
SectionRule,
} from "../../../src/types/chart/gauge_chart";
} from "../../../../src/types/chart/gauge_chart";
import {
addColumns,
createGaugeChart,
Expand All @@ -16,7 +16,7 @@ import {
setFormat,
undo,
updateChart,
} from "../../test_helpers/commands_helpers";
} from "../../../test_helpers/commands_helpers";

let model: Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import {
GAUGE_TITLE_FONT_SIZE,
GAUGE_TITLE_PADDING_LEFT,
getGaugeRenderingConfig,
} from "../../../src/helpers/figures/charts/gauge_chart_rendering";
import { Rect } from "../../../src/types";
import { GaugeChartRuntime } from "../../../src/types/chart";
import { MockCanvasRenderingContext2D } from "../../setup/canvas.mock";
} from "../../../../src/helpers/figures/charts/gauge_chart_rendering";
import { Rect } from "../../../../src/types";
import { GaugeChartRuntime } from "../../../../src/types/chart";
import { MockCanvasRenderingContext2D } from "../../../setup/canvas.mock";

const testRuntime: GaugeChartRuntime = {
background: "#FFFFFF",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import { Model } from "../../../src";
import { Model } from "../../../../src";
import {
DEFAULT_SCORECARD_BASELINE_COLOR_DOWN,
DEFAULT_SCORECARD_BASELINE_COLOR_UP,
} from "../../../src/constants";
import { getContextFontSize } from "../../../src/helpers";
import { drawScoreChart } from "../../../src/helpers/figures/charts";
} from "../../../../src/constants";
import { getContextFontSize } from "../../../../src/helpers";
import { drawScoreChart } from "../../../../src/helpers/figures/charts";
import {
ScorecardChartConfig,
formatBaselineDescr,
getScorecardConfiguration,
} from "../../../src/helpers/figures/charts/scorecard_chart_config_builder";
import { Pixel, UID } from "../../../src/types";
import { ScorecardChartRuntime } from "../../../src/types/chart/scorecard_chart";
import { MockCanvasRenderingContext2D } from "../../setup/canvas.mock";
} from "../../../../src/helpers/figures/charts/scorecard_chart_config_builder";
import { Pixel, UID } from "../../../../src/types";
import { ScorecardChartRuntime } from "../../../../src/types/chart/scorecard_chart";
import { MockCanvasRenderingContext2D } from "../../../setup/canvas.mock";
import {
createScorecardChart,
setCellContent,
setFormat,
setStyle,
updateLocale,
} from "../../test_helpers/commands_helpers";
import { getCellContent } from "../../test_helpers/getters_helpers";
import { toRangesData } from "../../test_helpers/helpers";
import { FR_LOCALE } from "./../../test_helpers/constants";
} from "../../../test_helpers/commands_helpers";
import { FR_LOCALE } from "../../../test_helpers/constants";
import { getCellContent } from "../../../test_helpers/getters_helpers";
import { toRangesData } from "../../../test_helpers/helpers";

let model: Model;
let chartId: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ChartCreationContext, CommandResult, Model } from "../../../src";
import { ChartCreationContext, CommandResult, Model } from "../../../../src";
import {
DEFAULT_SCORECARD_BASELINE_COLOR_DOWN,
DEFAULT_SCORECARD_BASELINE_COLOR_UP,
DEFAULT_SCORECARD_BASELINE_MODE,
} from "../../../src/constants";
import { zoneToXc } from "../../../src/helpers";
import { ScorecardChart } from "../../../src/helpers/figures/charts";
} from "../../../../src/constants";
import { zoneToXc } from "../../../../src/helpers";
import { ScorecardChart } from "../../../../src/helpers/figures/charts";
import {
ScorecardChartDefinition,
ScorecardChartRuntime,
} from "../../../src/types/chart/scorecard_chart";
} from "../../../../src/types/chart/scorecard_chart";
import {
addColumns,
createScorecardChart,
Expand All @@ -19,7 +19,7 @@ import {
setCellContent,
undo,
updateChart,
} from "../../test_helpers/commands_helpers";
} from "../../../test_helpers/commands_helpers";

let model: Model;

Expand Down

0 comments on commit 1c1ed5a

Please sign in to comment.