Updated test

This commit is contained in:
Duran
2018-12-24 11:27:31 -05:00
committed by GitHub
parent 5e2561e52e
commit 2dc5713996
@@ -6,6 +6,15 @@ const apiLimiter = new RateLimit({
delayMs: 0 // disabled
});
const apiLimiterWithMessageObject = new RateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100,
message: {
status: 429,
message: 'To many requests, try again later'
}
});
const createAccountLimiter = new RateLimit({
windowMs: 60 * 60 * 1000, // 1 hour window
delayAfter: 1, // begin slowing down responses after the first request