From 15813e212411ccc484feac0230dd2b0285ae51ef Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sat, 10 Nov 2018 11:23:02 -0500 Subject: [PATCH] Rename ClientsGraph loadingState to loadingProps Signed-off-by: Mcat12 --- src/components/dashboard/ClientsGraph.js | 6 +++--- src/components/dashboard/ClientsGraph.test.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/dashboard/ClientsGraph.js b/src/components/dashboard/ClientsGraph.js index f6f1921..7f2518f 100644 --- a/src/components/dashboard/ClientsGraph.js +++ b/src/components/dashboard/ClientsGraph.js @@ -192,7 +192,7 @@ export const transformData = data => { * * @returns {*} the loading props */ -export const loadingState = () => ({ +export const loadingProps = () => ({ loading: true, labels: [], datasets: [] @@ -207,11 +207,11 @@ export default props => ( interval: 10 * 60 * 1000 }} renderInitial={() => ( - + )} renderOk={data => ( )} - renderErr={() => } + renderErr={() => } /> ); diff --git a/src/components/dashboard/ClientsGraph.test.js b/src/components/dashboard/ClientsGraph.test.js index e6aa970..0d26146 100644 --- a/src/components/dashboard/ClientsGraph.test.js +++ b/src/components/dashboard/ClientsGraph.test.js @@ -13,7 +13,7 @@ import { shallow } from "enzyme"; import { TranslatedClientsGraph, transformData, - loadingState + loadingProps } from "./ClientsGraph"; const fakeData = { @@ -39,14 +39,14 @@ const fakeData = { }; it("shows loading indicator correctly", () => { - const wrapper = shallow(); + const wrapper = shallow(); expect(wrapper.children(".card-img-overlay")).toExist(); }); it("hides loading indicator correctly", async () => { const wrapper = shallow( - + ); expect(wrapper.children(".card-img-overlay")).not.toExist();