Skip to content

Commit

Permalink
Fix testing output for shared tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Mar 5, 2024
1 parent 5775bdf commit e5d6276
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/cli/test/unit/commands/certs/info.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,17 @@ describe('heroku shared', function () {
}

const stderr = function (endpoint: Endpoint) {
return `Fetching SSL certificate ${endpoint.name} info for example... done\n`
return heredoc(`
Fetching SSL certificate ${endpoint.name} info for ⬢ example...
Fetching SSL certificate ${endpoint.name} info for ⬢ example... done
`)
}

const stdout = function (certificateDetails: string) {
return `Certificate details:\n${certificateDetails}\n`
return heredoc(`
Certificate details:
${certificateDetails}
`)
}

sharedSni.shouldHandleArgs('certs:info', Cmd, callback, {stderr, stdout})
Expand Down

0 comments on commit e5d6276

Please sign in to comment.