mirror of https://github.com/lxndrblz/anatole.git

google-labs-jules[bot]
13 hours ago 1cf7b712a33ae4745d6515cff48a8177767f8c00
test: add test suite for anatole-theme-switcher.js

- Install jest and jest-environment-jsdom
- Add conditional exports to `assets/js/anatole-theme-switcher.js`
- Add integration test mimicking click toggling for switchTheme

Co-authored-by: KarelZe <12801659+KarelZe@users.noreply.github.com>
3 files modified
1 files added
5760 ■■■■■ changed files
assets/js/anatole-theme-switcher.js 4 ●●●●● diff | view | raw | blame | history
assets/js/anatole-theme-switcher.test.js 56 ●●●●● diff | view | raw | blame | history
package-lock.json 5696 ●●●●● diff | view | raw | blame | history
package.json 4 ●●●●● diff | view | raw | blame | history