All files / app appConstants.ts

92.85% Statements 13/14
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

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 22299x   333x 333x   57x   57x   424x                     57x  
export const eventImagePlaceholderUrl = "/img/eventImagePlaceholder.svg";
 
export const userLocationMaxRadius = 2000;
export const userLocationMinRadius = 50;
 
export const pingInterval = 10000;
 
export const reactQueryRetries = 1;
 
export const grpcErrorStrings = {
  "Deadline exceeded":
    "Server took too long to respond. Please check your Internet connection or try again later.",
  "Http response at 400 or 500 level":
    "Couldn't connect to the server. Please check your Internet connection or try again later.",
  "upstream connect error or disconnect/reset before headers":
    "There was an internal server error. Please try again later.",
};
 
export type ObscureGrpcErrorMessages = keyof typeof grpcErrorStrings;
 
export const sessionCookieName = "couchers-sesh";