Skip to content

Commit

Permalink
Hopefully, last fix for tests expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosio committed Jun 11, 2024
1 parent 7f509a1 commit a851db2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/api-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/account')

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
const stderrOutput = stderr.output.replace(/ *› */g, '').replace(/ *\n */g, ' ')
expect(stderrOutput).to.include(`This account is delinquent with payment and we‘ll suspend it on ${suspensionTime}`)
expect(stderrOutput).to.include(`This account is delinquent with payment and we‘ll delete it on ${deletionTime}`)
stderr.stop()
Expand Down Expand Up @@ -222,7 +222,7 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/account')

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
const stderrOutput = stderr.output.replace(/ *› */g, '').replace(/ *\n */g, ' ')
expect(stderrOutput).to.include(`This account is delinquent with payment and we‘ll suspend it on ${suspensionTime}`)
expect(stderrOutput).to.include(`This account is delinquent with payment and we‘ll delete it on ${deletionTime}`)
stderr.stop()
Expand Down Expand Up @@ -319,7 +319,7 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/teams/my_team/members')

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
const stderrOutput = stderr.output.replace(/ *› */g, '').replace(/ *\n */g, ' ')
expect(stderrOutput).to.include(`This team is delinquent with payment and we‘ll suspend it on ${suspensionTime}`)
expect(stderrOutput).to.include(`This team is delinquent with payment and we‘ll delete it on ${deletionTime}`)
stderr.stop()
Expand Down Expand Up @@ -349,7 +349,7 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/teams/my_team/members')

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
const stderrOutput = stderr.output.replace(/ *› */g, '').replace(/ *\n */g, ' ')
expect(stderrOutput).to.include(`This team is delinquent with payment and we‘ll suspend it on ${suspensionTime}`)
expect(stderrOutput).to.include(`This team is delinquent with payment and we‘ll delete it on ${deletionTime}`)
stderr.stop()
Expand Down

0 comments on commit a851db2

Please sign in to comment.