Signed-off-by: Ryan Vazquez <ryanv@spotify.com>
This commit is contained in:
Ryan Vazquez
2021-03-03 11:49:03 -05:00
parent 9372769c23
commit e7be6a33f7
7 changed files with 10 additions and 10 deletions
@@ -43,7 +43,7 @@ const mockData: ProjectGrowthData = {
};
// suppress recharts componentDidUpdate deprecation warnings
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => {});
async function renderInContext(children: JSX.Element) {
return renderInTestApp(
@@ -40,7 +40,7 @@ const mockData: UnlabeledDataflowData = {
};
// suppress recharts componentDidUpdate deprecation warnings
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => {});
async function renderInContext(children: JSX.Element) {
return renderInTestApp(
@@ -31,7 +31,7 @@ import {
import { Entity, Product } from '../../types';
// suppress recharts componentDidUpdate warnings
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => {});
const MockComputeEngine: Product = {
kind: 'compute-engine',
@@ -34,7 +34,7 @@ import {
import { Duration, Entity, Product } from '../../types';
// suppress recharts componentDidUpdate warnings
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => {});
const costInsightsApi = (entity: Entity): Partial<CostInsightsApi> => ({
getProductInsights: () => Promise.resolve(entity),
@@ -28,7 +28,7 @@ import { defaultCurrencies } from '../../utils/currency';
import { findAlways } from '../../utils/assert';
// suppress recharts componentDidUpdate deprecation warnings
jest.spyOn(console, 'warn').mockImplementation(() => { });
jest.spyOn(console, 'warn').mockImplementation(() => {});
const engineers = findAlways(defaultCurrencies, c => c.kind === null);
@@ -27,7 +27,10 @@ import {
ChangeStatistic,
Entity,
} from '../../types';
import { KubernetesMigrationDismissForm, KubernetesMigrationDismissFormData } from '../forms';
import {
KubernetesMigrationDismissForm,
KubernetesMigrationDismissFormData,
} from '../forms';
export interface KubernetesMigrationData {
startDate: string;
+1 -4
View File
@@ -29,10 +29,7 @@ import {
UnlabeledDataflowData,
} from '../types';
import { KubernetesMigrationAlert } from './alerts';
import {
ProjectGrowthAlert,
UnlabeledDataflowAlert,
} from '../alerts';
import { ProjectGrowthAlert, UnlabeledDataflowAlert } from '../alerts';
import {
aggregationFor,
changeOf,