Skip to content

Commit

Permalink
Replace use of any type with messages.Envelope
Browse files Browse the repository at this point in the history
Part of #1648

Co-authored-by: Kate Dames <[email protected]>
Co-authored-by: Emmanuel Ola <[email protected]>
  • Loading branch information
3 people committed Jan 14, 2022
1 parent 8f21ae9 commit 6b6e598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compatibility/cck_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('Cucumber Compatibility Kit', () => {
stdout.end()

const rawOutput = await toString(stdout)
// TODO: consider validating (at run-time) the parsed message is really an Envelope
const actualMessages = normalize(
rawOutput
.split('\n')
Expand Down Expand Up @@ -85,7 +86,7 @@ describe('Cucumber Compatibility Kit', () => {
})
})

function normalize(messages: any[]): any[] {
function normalize(messages: messages.Envelope[]): messages.Envelope[] {
messages = normalizeMessageOutput(
messages,
path.join(PROJECT_PATH, 'compatibility')
Expand Down

0 comments on commit 6b6e598

Please sign in to comment.