0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/auth/test/partials/plugin/verdaccio-fail-invalid-method/fail.js

12 lines
324 B
JavaScript
Raw Normal View History

const { errorUtils } = require('@verdaccio/core');
module.exports = function () {
return {
authenticateFake(user, pass, callback) {
/* user and pass are used here to forward errors
and success types respectively for testing purposes */
callback(errorUtils.getInternalError(), false);
},
};
};