All files / packages/constants/src messages.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 241x         1x           2x                        
export const ERROR_MESSAGES = {
  FIELD_REQUIRED: "This field is required",
  EMAIL: "Please enter a valid email address",
};
 
export const AUTH_ERROR_MESSAGES = {
  COMMON: "Failed to login! Please try again.",
  NOT_ALLOWED_EMAIL_DOMAIN: "Email domain is not allowed",
  USER_DISABLED: "Your account is deactivated. Please contact support.",
};
 
export const LAUNCHDARKLY_ERROR_MESSAGES = {
  INIT_FAILED: "Failed to initialize LaunchDarkly client",
  IDENTIFY_FAILED: "Failed to identify user with LaunchDarkly",
  VARIATION_FAILED: "Failed to get feature flag variation",
  TRACK_FAILED: "Failed to track event with LaunchDarkly",
  FLUSH_FAILED: "Failed to flush LaunchDarkly events",
  CLOSE_FAILED: "Failed to close LaunchDarkly client",
  CLEAR_USER_FAILED: "Failed to clear LaunchDarkly user",
  CLIENT_NOT_INITIALIZED: "LaunchDarkly client is not initialized",
  CLIENT_NOT_READY: "LaunchDarkly client is not ready",
  CLIENT_SIDE_ID_MISSING: "LaunchDarkly client-side ID is not provided",
};