Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc committed Aug 1, 2019
1 parent b2beb83 commit 79ff522
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ describe('KpiNetwork Component', () => {
const state: State = mockGlobalState;
const from = new Date('2019-06-15T06:00:00.000Z').valueOf();
const to = new Date('2019-06-18T06:00:00.000Z').valueOf();
const narrowDateRange = jest.fn();

let store = createStore(state, apolloClientObservable);

Expand All @@ -36,6 +37,7 @@ describe('KpiNetwork Component', () => {
id="kpiNetwork"
loading={true}
to={to}
narrowDateRange={narrowDateRange}
/>
</ReduxStoreProvider>
);
Expand All @@ -52,6 +54,7 @@ describe('KpiNetwork Component', () => {
id="kpiNetwork"
loading={false}
to={to}
narrowDateRange={narrowDateRange}
/>
</ReduxStoreProvider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import { KpiNetworkData } from '../../../../graphql/types';
import { StatItems } from '../../../stat_items';

export const mockNarrowDateRange = jest.fn();

export const mockData: { KpiNetwork: KpiNetworkData } = {
KpiNetwork: {
networkEvents: 16,
Expand Down Expand Up @@ -216,4 +218,5 @@ export const mockEnableChartsData = {
id: 'statItem',
index: 4,
to: 1560837600000,
narrowDateRange: mockNarrowDateRange,
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
mockData,
mockEnableChartsData,
mockNoChartMappings,
mockNarrowDateRange,
} from '../page/network/kpi_network/mock';
import { mockGlobalState, apolloClientObservable } from '../../mock';
import { State, createStore } from '../../store';
Expand All @@ -50,6 +51,7 @@ describe('Stat Items Component', () => {
index={0}
key="mock-keys"
to={to}
narrowDateRange={mockNarrowDateRange}
/>
</ReduxStoreProvider>
),
Expand All @@ -67,6 +69,7 @@ describe('Stat Items Component', () => {
index={0}
key="mock-keys"
to={to}
narrowDateRange={mockNarrowDateRange}
/>
</ReduxStoreProvider>
),
Expand Down Expand Up @@ -151,6 +154,7 @@ describe('Stat Items Component', () => {
index: 0,
key: 'mock-keys',
to,
narrowDateRange: mockNarrowDateRange,
};
let wrapper: ReactWrapper;
beforeAll(() => {
Expand Down Expand Up @@ -229,7 +233,8 @@ describe('useKpiMatrixStatus', () => {
data,
'statItem',
from,
to
to,
mockNarrowDateRange
);

return (
Expand Down

0 comments on commit 79ff522

Please sign in to comment.