tjtanjin / react-chatbotify

A modern React library for creating a flexible and extensible chatbot.
https://react-chatbotify.com
MIT License
148 stars 68 forks source link

[Task] Add test cases for testing theme cache #104

Open tjtanjin opened 3 weeks ago

tjtanjin commented 3 weeks ago

Description: Themes are now cached locally with a specified duration (defaults to 30 days). It would be great to add 2 test cases for it: 1) If themes are not expired, they should be present 2) If themes are expired, they should not be present

Possible to test this quickly by setting an expiration of 3 seconds.