text: const chai = require('chai')
  const expect = chai.expect
  const twitterStatus = require('../lib/twitterStatus')
  
  describe('Twitter status', () => {
    it('should always include robot emoji', () => {
      for (let i = 0; i < 100; i++) {
        expect(twitterStatus()).to.include('[🤖]')
      }
    })
  
    it('should always include #coupon hashtag', () => {
      for (let i = 0; i < 100; i++) {
        expect(twitterStatus()).to.include('#coupon')
      }
    })
  
    it('should always mention discount amount', () => {
      for (let i = 10; i < 40; i++) {
        expect(twitterStatus(i)).to.include(i + '%')
      }
    })
  
    it('should always contain coupon code', () => {
      for (let i = 0; i < 100; i++) {
        expect(twitterStatus(undefined, ':COUPON:')).to.include(':COUPON:')
      }
    })
  
    it('should always mention expiration date', () => {
      for (let i = 0; i < 100; i++) {
        expect(twitterStatus(undefined, undefined, ':EXPIRATION:')).to.include(':EXPIRATION:')
      }
    })
  
    it('should never be longer than 200 characters', () => {
      for (let i = 0; i < 100; i++) {
        expect(twitterStatus().length <= 200).to.equal(true)
      }
    })
  })
  