All files / helpers projectHelper.ts

26.31% Statements 5/19
100% Branches 1/1
50% Functions 1/2
26.31% Lines 5/19

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 201x                             1x 1x 6x 6x  
export function getConvertedDataTime(dateObject: string): string {
  const date = new Date(dateObject);
  /**
   * its return type date
   * And its object type
   */
  return date.toLocaleDateString("en-US", {
    year: "numeric",
    month: "long",
    day: "numeric",
    hour: "numeric",
    minute: "numeric",
    second: "numeric"}
  );
}
 
export function getAsset(path:string){
  return process.env.NEXT_PUBLIC_BASEURL+path;
}