Automatically organize imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import BarGraph from "../../component/charts/bar-graph/bar-graph";
|
||||
import { graph_data_two_measures } from "../../mock/charts/mock-data";
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
|
||||
import ChartLabel from "../../component/charts/chart-label/chart-label";
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import { Text } from "react-native";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
|
||||
import ChartView from "../../component/charts/chart-view";
|
||||
|
||||
|
@@ -1,13 +1,13 @@
|
||||
import React from "react";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import * as scale from "d3-scale";
|
||||
import React from "react";
|
||||
|
||||
import { CustomBars } from "../../component/charts/custom-bars";
|
||||
import {
|
||||
calculateBarOrigin,
|
||||
drawBarPath,
|
||||
} from "../../component/charts/custom-bar-utils";
|
||||
import { CustomBars } from "../../component/charts/custom-bars";
|
||||
|
||||
const mockYScaleFunction = scale.scaleLinear();
|
||||
const mockXScaleFunction = scale.scaleBand();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { render } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import LineGraph from "../../component/charts/line-graph/line-graph";
|
||||
import { line_chart_two_y_data } from "../../mock/charts/mock-data";
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import { renderHook } from "@testing-library/react-native";
|
||||
import { useGraphData } from "../../component/charts/use-graph-data";
|
||||
import { GraphData, GraphProps } from "../../component/charts/graph-types";
|
||||
import { useGraphData } from "../../component/charts/use-graph-data";
|
||||
|
||||
describe("useGraphData", () => {
|
||||
it("should return correctly processed data from convertToGraphData", () => {
|
||||
|
@@ -1,9 +1,9 @@
|
||||
import React from "react";
|
||||
import { render, cleanup, waitFor } from "@testing-library/react-native";
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
import { gql, useQuery } from "@apollo/client";
|
||||
import withQueryHandling from "../../component/with-query-handling";
|
||||
import "@testing-library/jest-native/extend-expect";
|
||||
import { cleanup, render, waitFor } from "@testing-library/react-native";
|
||||
import React from "react";
|
||||
import { Text } from "react-native";
|
||||
import withQueryHandling from "../../component/with-query-handling";
|
||||
|
||||
jest.mock("@apollo/client", () => ({
|
||||
...jest.requireActual("@apollo/client"),
|
||||
|
Reference in New Issue
Block a user