gristlabs_grist-core/app
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
..
client Fix: formula assistant translations (#1192) 2024-09-04 11:11:22 -04:00
common (core) DocLimits: display days remaining instead of days of grace period 2024-08-29 22:51:49 -04:00
gen-server Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
plugin Move phab docs to /documentation (#882) 2024-03-05 08:35:48 -05:00
server Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00