title: How to assert the validate error in sequelizejs unit test with jest?
body: <p>I am unit testing a User model. The user name shouldn't be empty. The unit test is the following:</p>
  
  <pre><code>it('should reject no name', async () =&gt; {
     name = '';
     expect(await User.create(payload())).toThrow();
  });
  </code></pre>
  
  <p>when <code>payload</code> has all the data except with empty name, the unit test throw the following error:</p>
  
  <pre><code> SequelizeValidationError: Validation error: Invalid validator function: unique,
      Validation error: Invalid validator function: msg,
      Validation error: column "cell" does not exist
  </code></pre>
  
  <p>However the assertion here <code>.toThrow</code> is not right and the test case still fails.  Tried toBeUndefined with no avail. What is the correct assertion for this type of error?</p>