Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Apr 9, 2024
1 parent 55ec826 commit 31fa4cc
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export default ({ getService }: FtrProviderContext) => {
TRANSFORM_STATE.STOPPED,
`Expected transform state of ${transformId} to be '${TRANSFORM_STATE.STOPPED}' (got ${stats.state})`
);
expect(stats.health.status).to.eql(
expect(stats.health?.status).to.eql(
'red',
`Expected transform health status of ${transformId} to be 'red' (got ${stats.health.status})`
`Expected transform health status of ${transformId} to be 'red' (got ${stats.health?.status})`
);
expect(stats.health.issues![0].type).to.eql(
expect(stats.health?.issues![0].type).to.eql(
'privileges_check_failed',
`Expected transform health issue of ${transformId} to be 'privileges_check_failed' (got ${stats.health.status})`
`Expected transform health issue of ${transformId} to be 'privileges_check_failed' (got ${stats.health?.status})`
);
}

Expand All @@ -94,9 +94,9 @@ export default ({ getService }: FtrProviderContext) => {
)})`
);
const stats = await transform.api.getTransformStats(transformId);
expect(stats.health.status).to.eql(
expect(stats.health?.status).to.eql(
'green',
`Expected transform health status of ${transformId} to be 'green' (got ${stats.health.status})`
`Expected transform health status of ${transformId} to be 'green' (got ${stats.health?.status})`
);
}

Expand Down

0 comments on commit 31fa4cc

Please sign in to comment.