All files / src/background constants.ts

100% Statements 6/6
50% Branches 1/2
100% Functions 0/0
100% Lines 6/6

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 24 25        4x           4x               4x     4x 4x 4x  
interface constantsdef {
  url: { API_URL: string };
}
 
const prod: constantsdef = {
  url: {
    API_URL: window.location.origin + "/api"
  }
};
 
const dev: constantsdef = {
  url: {
    API_URL: "https://demo.filefighter.de/api"
    // API_URL: 'http://localhost:8081/https://filefighter.de/api',
    //  API_URL: 'http://localhost:8080',
    //API_URL: 'https://filefighter.de/api',
  }
};
export const constants = process.env.NODE_ENV === "development" ? dev : prod;
 
 
export const MIN_PASSWORD_LENGTH = 8;
export const MAX_PASSWORD_LENGTH = 20;
export const DEFAULT_ALERT_DURATION = 3500;