1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-29 07:59:42 +01:00
bitwarden-browser/libs/common/spec
Matt Gibson 211d7a2626
Ps/improve state provider fakers (#7494)
* Expand state provider fakes

- default null initial value for fake states
- Easier mocking of key definitions through just the use of key names
  - allows for not exporting KeyDefinition as long as the key doesn't collide
- mock of fake state provider to verify `get` calls
- `nextMock` for use of the fn mock matchers on emissions of `state$`
- `FakeAccountService` which allows for easy initialization and working with account switching

* Small bug fix for cache key collision on key definitions unique by only storage location

* Fix initial value for test
2024-01-10 10:36:19 -05:00
..
matchers [deps] Autofill: Update prettier to v3 (#7014) 2023-11-29 16:15:20 -05:00
fake-account-service.ts Ps/improve state provider fakers (#7494) 2024-01-10 10:36:19 -05:00
fake-state-provider.ts Ps/improve state provider fakers (#7494) 2024-01-10 10:36:19 -05:00
fake-state.ts Ps/improve state provider fakers (#7494) 2024-01-10 10:36:19 -05:00
fake-storage.service.ts Ps/avoid state emit until updated (#7198) 2023-12-13 08:06:24 -05:00
index.ts [PM-2132] Move all specs to the src directory (#5367) 2023-05-09 11:27:09 +02:00
intercept-console.ts [PM-2132] Move all specs to the src directory (#5367) 2023-05-09 11:27:09 +02:00
utils.ts Ps/avoid state emit until updated (#7198) 2023-12-13 08:06:24 -05:00