mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-09 00:18:26 +01:00
The test was breaking because it assumed a month would have at least 30 days. Because the test relies on the current month, this isn't necessarily true. Further, there's parts of the code that relies on "impure" state via the "current date" (which will change based on when you run it), so setting a specific month in the test won't work. As such, this test makes the calculation explicit and uses the number of days in the current month. |
||
---|---|---|
.. | ||
__mocks__ | ||
assets | ||
component | ||
constants | ||
contexts | ||
hooks | ||
interfaces | ||
openapi | ||
themes | ||
types | ||
utils | ||
index.tsx | ||
setupTests.ts | ||
vite-env.d.ts |