gristlabs_grist-core/test/gen-server/lib
Florent 16ebc32611
Add tests for UsersManager (#1149)
Context

HomeDBManager lacks of direct tests, which makes hard to make rework or refactorations.
Proposed solution

Specifically here, I introduce tests which call exposed UsersManager methods directly and check their result.

Also:

    I removed updateUserName which seems to me useless (updateUser does the same work)
    Taking a look at the getUserByLogin methods, it appears that Typescirpt infers it returns a Promise<User|null> while in no case it may resolve a nullish value, therefore I have forced to return a Promise<User> and have changed the call sites to reflect the change.

Related issues

I make this change for then working on #870
2024-09-05 16:30:04 -04:00
..
homedb Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
DocApiForwarder.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
DocWorkerMap.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
emails.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
everyone.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
HealthCheck.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
HomeDBManager.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
Housekeeper.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
limits.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
listing.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
mergedOrgs.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
prefs.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
previewer.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
removedAt.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
scrubUserFromOrg.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
suspension.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00
urlIds.ts (core) test: move gen-server tests into core 2024-08-15 08:44:35 -04:00