onur-ozkan / nestjs-rate-limiter

Highly configurable and extensible rate limiter library
https://npmjs.com/package/nestjs-rate-limiter
MIT License
238 stars 43 forks source link

Feat/rate limit interface unit test #40

Closed shannonlal closed 3 years ago

shannonlal commented 3 years ago

The following is another very simple PR to look at expanding the amount of test coverage. This is linked to issue #36. This PR really focuses on making sure the interfaces have some simple tests. Here is a summary of what was added to the PR:

Changes in PR:

  1. Adds a simple spec for the rate-limiter.interface

Outputs

Tests

The following is the output of the tests

npm run test

Screen Shot 2020-11-22 at 1 51 19 PM

Linting

npm run lint

Screen Shot 2020-11-22 at 1 51 36 PM

Build

npm run build

Screen Shot 2020-11-22 at 1 55 00 PM