Files
gristlabs_grist-core/app/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
..
2024-03-21 13:01:25 -04:00
2024-07-30 13:41:47 -04:00
2024-07-30 13:41:47 -04:00
2024-09-05 16:30:04 -04:00
2024-07-23 11:49:23 -04:00
2022-02-19 09:46:49 +00:00
2024-05-22 14:56:53 +02:00
2023-10-11 17:36:58 -04:00
2024-08-27 06:38:35 -04:00
2024-07-23 11:49:23 -04:00
2022-06-17 21:53:20 +02:00
2023-02-20 22:46:36 -05:00
2023-04-03 13:29:35 -04:00
2022-07-04 10:42:40 -04:00
2022-04-01 15:24:19 -07:00
2023-07-30 15:13:43 -04:00
2023-10-11 17:36:58 -04:00
2024-01-08 09:19:50 -05:00
2020-07-21 20:39:10 -04:00
2022-08-25 12:38:36 -07:00