overleaf/services/web/test/acceptance/src/helpers/RedisHelper.js

12 lines
287 B
JavaScript
Raw Normal View History

const RateLimiter = require('../../../../app/src/infrastructure/RateLimiter')
async function clearOverleafLoginRateLimit() {
await RateLimiter.promises.clearRateLimit('overleaf-login', '127.0.0.1')
}
module.exports = {
initialize() {
before(clearOverleafLoginRateLimit)
},
}