Files
gristlabs_grist-core/test/nbrowser
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-08-23 11:24:35 -04:00
2023-10-11 17:36:58 -04:00
2024-05-22 14:56:53 +02:00
2023-10-11 17:36:58 -04:00
2024-08-14 16:48:36 -04:00
2023-10-20 15:43:32 +02:00
2024-07-23 11:49:23 -04:00
2024-07-23 11:49:23 -04:00
2024-08-14 16:48:36 -04:00
2023-08-07 11:01:35 -07:00
2024-07-23 11:49:23 -04:00
2024-09-05 16:30:04 -04:00
2024-05-02 13:46:33 -04:00
2024-04-26 16:57:55 -04:00
2023-12-20 12:57:41 +01:00
2024-01-30 13:25:50 -05:00
2024-08-14 16:48:36 -04:00
2024-08-14 16:48:36 -04:00
2024-08-05 23:27:34 +02:00
2023-10-17 15:38:19 -04:00
2023-10-11 17:36:58 -04:00