gristlabs_grist-core/test/server/lib/helpers
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
..
PrepareDatabase.ts Add tests for UsersManager (#1149) 2024-09-05 16:30:04 -04:00
PrepareFilesystemDirectoryForTests.ts (core) Proxy Agent moved to the separate file, Triggers are using proxy now to perform fetch 2023-05-08 11:54:09 +02:00
Signal.ts (core) Adding UI for timing API 2024-05-22 14:56:53 +02:00
TestProxyServer.ts Introduce APP_HOME_INTERNAL_URL and fix duplicate docs (#915) 2024-05-14 12:58:41 -04:00
TestServer.ts (core) Port allocation fix in TestServer 2024-06-24 22:10:58 +02:00