You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sinon.stub(liana, 'ensureAuthenticated') should stub the ensureAuthenticated
Actual behavior
stub does not address liana 'ensureAuthenticated', and code in forest-express-sequelize and forest-express seem to obscure how ensureAuthenticated is exposed
ended up resolving this by not including ensureAuthenticated middleware in test env, as bad as it is to include test-specific logic in production code.
ended up resolving this by not including ensureAuthenticated middleware in test env, as bad as it is to include test-specific logic in production code.
Expected behavior
sinon.stub(liana, 'ensureAuthenticated') should stub the ensureAuthenticated
Actual behavior
stub does not address liana 'ensureAuthenticated', and code in
forest-express-sequelize
andforest-express
seem to obscure how ensureAuthenticated is exposedContext
I use
liana.ensureAuthenticated
as a middleware as suggested by Forest docs https://doc.forestadmin.com/developer-guide/express-sequelize.html#uploading-images and am hoping to unit test my controller.The text was updated successfully, but these errors were encountered: