mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
c6be3fa19c
* Add feature flag route guard and tests * Add additional test for not showing error toast * Strengthen error toast test with message check * Cleanup leaking test state in platformService mock * Negate if statement to reduce nesting * Update return type to CanActivateFn * Use null check instead of undefined * Introduce interface to support different feature flag types - Switch to observable pattern to access serverConfig$ subject - Add catchError handler to allow navigation in case of unexpected exception - Add additional tests * Add additional test for missing feature flag * Remove subscription to the serverConfig observable Introduce type checking logic to determine the appropriately typed flag getter to use in configService * Update the feature flag to fallback to blocking the route on an unexpected exception * Trigger test action * Fix imports after merge with master |
||
---|---|---|
.. | ||
src | ||
jest.config.js | ||
package.json | ||
test-utils.ts | ||
test.setup.ts | ||
tsconfig.json | ||
tsconfig.spec.json |