Example #1
0
  it('should return false, when email topic is greater than 500', (done) => {
    const result = emailValidator.validTopic(stubInvalidFormEmail.topic)

    expect(result).eql(false)
    done()
  })
Example #2
0
  it('should return true, when email body is shorter than 5000', (done) => {
    const result = emailValidator.validTopic(stubValidFormEmail.body)

    expect(result).eql(true)
    done()
  })