<commit_before>import {expect, test} from '../../test'

describe('auth:whoami', () => {
  test
  .env({HEROKU_API_KEY: 'foobar'})
  .nock('https://api.heroku.com', api => api
    .get('/oauth/authorizations')
    .reply(200, [
      {access_token: {token: '<PASSWORD>'}},
      {access_token: {token: '<PASSWORD>', expires_in: 60}},
      {},
    ])
  )
  .stdout()
  .stderr()
  .command(['auth:token'])
  .it('shows auth token', ctx => {
    expect(ctx.stdout).to.equal('foobar\n')
    expect(ctx.stderr).to.contain('Warning: token will expire today')
  })
})<commit_msg>test(auth): fix describe title (#965)<commit_after>import {expect, test} from '../../test'

describe('auth:token', () => {
  test
  .env({HEROKU_API_KEY: 'foobar'})
  .nock('https://api.heroku.com', api => api
    .get('/oauth/authorizations')
    .reply(200, [
      {access_token: {token: '<PASSWORD>'}},
      {access_token: {token: '<PASSWORD>', expires_in: 60}},
      {},
    ])
  )
  .stdout()
  .stderr()
  .command(['auth:token'])
  .it('shows auth token', ctx => {
    expect(ctx.stdout).to.equal('foobar\n')
    expect(ctx.stderr).to.contain('Warning: token will expire today')
  })
})
{'fraction_non_alphanumeric': 0.2292557741659538, 'fraction_numerical': 0.011120615911035072, 'mean_word_length': 3.4150943396226414, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6193760', 'n_tokens_mistral': 442, 'n_tokens_neox': 424, 'n_words': 74}