Skip to content

Commit

Permalink
Fixing expected test outputs on CI runs again
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosio committed Jun 11, 2024
1 parent b9f65e3 commit 7f509a1
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions test/api-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,9 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/account')

expect(stderr.output).to.include('This account is delinquent with payment and we‘ll suspend it on')
expect(stderr.output).to.include(`${suspensionTime}`)
expect(stderr.output).to.include('This account is delinquent with payment and we‘ll delete it on')
expect(stderr.output).to.include(`${deletionTime}`)
const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
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()
particleboard.done()
})
Expand All @@ -222,10 +221,10 @@ describe('api_client', () => {
stderr.start()
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/account')
expect(stderr.output).to.include('This account is delinquent with payment and we‘ll suspend it on')
expect(stderr.output).to.include(`${suspensionTime}`)
expect(stderr.output).to.include('This account is delinquent with payment and we‘ll delete it on')
expect(stderr.output).to.include(`${deletionTime}`)

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
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()

stderr.start()
Expand Down Expand Up @@ -320,10 +319,9 @@ describe('api_client', () => {
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/teams/my_team/members')

expect(stderr.output).to.include('This team is delinquent with payment and we‘ll suspend it on')
expect(stderr.output).to.include(`${suspensionTime}`)
expect(stderr.output).to.include('This team is delinquent with payment and we‘ll delete it on')
expect(stderr.output).to.include(`${deletionTime}`)
const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
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()
particleboard.done()
})
Expand All @@ -350,14 +348,15 @@ describe('api_client', () => {
stderr.start()
const cmd = new Command([], ctx.config)
await cmd.heroku.get('/teams/my_team/members')
expect(stderr.output).to.include('This team is delinquent with payment and we‘ll suspend it on')
expect(stderr.output).to.include(`${suspensionTime}`)
expect(stderr.output).to.include('This team is delinquent with payment and we‘ll delete it on')
expect(stderr.output).to.include(`${deletionTime}`)

const stderrOutput = stderr.output.replace('› ', '').replace('\n', ' ')
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()

stderr.start()
await cmd.heroku.get('/teams/my_team/members')

expect(stderr.output).to.eq('')
expect(stderr.output).to.eq('')
stderr.stop()
Expand Down

0 comments on commit 7f509a1

Please sign in to comment.