mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
|
|
import { FeatureKeys } from 'constants/features';
|
||
|
|
|
||
|
|
import { isFeatureKeys } from './utils';
|
||
|
|
|
||
|
|
describe('Feature Keys', () => {
|
||
|
|
it('should return true for a valid feature key', () => {
|
||
|
|
expect(isFeatureKeys(FeatureKeys.ALERT_CHANNEL_MSTEAMS)).toBe(true);
|
||
|
|
});
|
||
|
|
|
||
|
|
it('should return false for an invalid feature key', () => {
|
||
|
|
expect(isFeatureKeys('invalid')).toBe(false);
|
||
|
|
});
|
||
|
|
});
|