sequelize-auto
sequelize-auto copied to clipboard
build.test can never be red
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);
})