EN · DE · RU · FR · ES

#2740: authentication.test.js

projectforge-webapp/src/reducers/authentication.test.js Redux reducer test, projectforge-webapp/src/reducers/authentication.test.js 101 lines · 84 code · 0 comments · 17 blank
Unit tests for the authentication Redux reducer. Verifies state transitions for login actions: tests initial state (loading: true), successful login (loading: false, user populated), login failure (error message set), and logout (state reset to initial). Uses frozen test data objects to ensure immutability.

Git History

5567a1b02 fix test
1ef8e1e45 wip migration to react 18