Commit graph

15 commits

Author SHA1 Message Date
56b528999e
update fake token generator to take a preset number of tokens 2026-05-20 10:22:10 +03:00
c78ccfcfa2
change test case import 2026-05-19 19:59:14 +03:00
51537bbf24
change testcase import, add datetime to fake clock, style lines 2026-05-19 19:57:57 +03:00
3ebb2c14b3
change up logout test style 2026-05-19 19:55:49 +03:00
a859c87455
add auth middleware test 2026-05-19 19:53:54 +03:00
383a8a0fbd
add idempotent logout for missing token test 2026-05-18 22:06:46 +03:00
7c996ade74
add timestamp and persistence assertions for create session 2026-05-18 22:06:38 +03:00
1c5d09f09c
add empty string tests for authenticate 2026-05-18 22:06:26 +03:00
64acbfad60
extract auth test fakes 2026-05-18 22:01:45 +03:00
410b752183
add unit tests for user and auth 2026-05-18 21:36:10 +03:00
f6a33cf620
delete backend, starting over 2026-05-18 21:18:20 +03:00
f2bc33592d
test: add null and empty token cases to logout test
Red phase: Logout should handle null and empty string tokens gracefully without throwing. Currently null causes TypeError.
2026-05-17 10:09:20 +03:00
ceb392fc8d
test: add failing logout test
Red phase: LogoutTest covers deleting existing session and no-op for unknown token.
2026-05-17 09:45:24 +03:00
a78d429f0b
test: add failing create session test
Red phase: CreateSessionTest covers token, user, createdAt, 7-day expiry, persistence, and fresh instance.
2026-05-17 09:45:23 +03:00
57c75f64c4
test: add failing authenticate user test
Red phase: write AuthenticateUserTest with cases for valid credentials, empty email/password (null and empty string), unknown email, wrong password, and fresh instance guarantee. Fakes included.
2026-05-17 09:45:22 +03:00