sequelize-mock
sequelize-mock copied to clipboard
Docs update
I have updated and fixed documentation error of this part
User.$useHandler(function(query, queryOptions, done) { if (query === 'findOne') { if (queryOptions[0].where.id === 42) { // Result found, return it return User.build({ id: 42, name: 'foo' }); } else { // No results return null; } } });