Skip to content

Commit

Permalink
Fix test types
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Sep 6, 2020
1 parent 1e43465 commit ce6dd2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/public/core_app/status/lib/load_status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const mockedResponse: StatusResponse = {
],
},
metrics: {
collected_at: new Date('2020-01-01 01:00:00'),
collection_interval_in_millis: 1000,
os: {
platform: 'darwin' as const,
Expand Down
1 change: 1 addition & 0 deletions src/core/server/metrics/metrics_service.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const createInternalSetupContractMock = () => {
};
setupContract.getOpsMetrics$.mockReturnValue(
new BehaviorSubject({
collected_at: new Date('2020-01-01 01:00:00'),
process: {
memory: {
heap: { total_in_bytes: 1, used_in_bytes: 1, size_limit: 1 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ describe('telemetry_ops_stats', () => {
const callCluster = jest.fn();

const metric: OpsMetrics = {
collected_at: new Date('2020-01-01 01:00:00'),
process: {
memory: {
heap: {
Expand Down

0 comments on commit ce6dd2d

Please sign in to comment.