Files
..
2018-02-28 10:19:35 -08:00
2019-11-22 13:47:23 -08:00
2019-11-22 13:47:23 -08:00
2018-04-06 22:42:45 -07:00
2019-11-22 13:47:23 -08:00
2018-04-10 02:13:44 -07:00
2019-11-22 13:47:23 -08:00

import {expect, test} from '@oclif/test'
import * as fs from 'fs-extra'

const readme = fs.readFileSync('README.md', 'utf8')

describe('readme', () => {
  test
  .stdout()
  .finally(() => fs.writeFile('README.md', readme))
  .command(['readme'])
  .it('runs readme', () => {
    expect(fs.readFileSync('README.md', 'utf8')).to.contain('manifest')
  })

  test
  .stdout()
  .finally(() => fs.writeFile('README.md', readme))
  .finally(() => fs.remove('docs'))
  .command(['readme', '--multi'])
  .it('runs readme --multi', () => {
    expect(fs.readFileSync('README.md', 'utf8')).to.contain('manifest')
  })
})