@@ -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',
|
||||
|
||||
+1
-1
@@ -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),
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user