sequelize / sequelize-auto

Automatically generate bare sequelize models from your database.
2.88k stars 521 forks source link

build.test can never be red #638

Open hhowe29 opened 1 year ago

hhowe29 commented 1 year ago

Assertion errors need to be passed to the mocha done callback, otherwise the test will appear to be green.

These lines should be changed to

    auto.build().then(tableData => {
      callback(tableData);
      done();
    }).catch((e) => {
      done(e);
    })