Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Friedly <nathan@nfriedly.com>
  • Loading branch information
melya and nfriedly committed Jul 1, 2021
1 parent 058f85c commit fee9305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/express-rate-limit-test.js
Expand Up @@ -438,7 +438,7 @@ describe("express-rate-limit node module", () => {
);

await request(app).get("/").expect(200);
assert(store.decrement_was_called, "decrement was not called on the store");
assert(store.decrement_was_called, "decrement was called on the store");
});

it("should not decrement hits with success response with custom 'requestWasSuccessful' option", async () => {
Expand All @@ -455,7 +455,7 @@ describe("express-rate-limit node module", () => {

await request(app).get("/bad_response_status").expect(403);

assert(!store.decrement_was_called, "decrement was called on the store");
assert(!store.decrement_was_called, "decrement was not called on the store");
});

it("should decrement hits with failed response and skipFailedRequests", async () => {
Expand Down

0 comments on commit fee9305

Please sign in to comment.