Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Sep 10, 2024
1 parent 97f161f commit 0d188cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('display', function () {

setupDisplay(auth)
.it('prints the styled authorization with access token info', ctx => {
const expirationDate = addSeconds(new Date(), 10000)
expect(ctx.stdout).to.contain(`ID: ${authId}\n`)
expect(ctx.stdout).to.contain('Scope: global,app\n')
expect(ctx.stdout).to.contain('Description: a cool auth\n')
Expand All @@ -60,7 +61,6 @@ describe('display', function () {
expect(ctx.stdout).to.contain(`Updated at: ${updatedAt}`)
expect(ctx.stdout).to.contain(`(${formatDistanceToNow(updatedAt)} ago)`)

const expirationDate = addSeconds(updatedAt, 10000)
expect(ctx.stdout).to.contain(`Expires at: ${expirationDate}`)
expect(ctx.stdout).to.contain(`(in ${formatDistanceToNow(expirationDate)})`)
})
Expand Down

0 comments on commit 0d188cb

Please sign in to comment.