Skip to content

Commit

Permalink
Testing JSON parse
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed May 21, 2024
1 parent a436975 commit 6a9fa7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface TaskDetails {
duration: string;
}

async function readJsonFile(filePath: string): Promise<TaskDetails[]> {
export async function readJsonFile(filePath: string): Promise<TaskDetails[]> {
try {
const data = await readFileAsync(filePath, { encoding: 'utf8' });
return JSON.parse(data);
Expand All @@ -24,7 +24,7 @@ async function readJsonFile(filePath: string): Promise<TaskDetails[]> {
}
}

function addBuildSummaryTable(task: TaskDetails[]): void {
export function addBuildSummaryTable(task: TaskDetails[]): void {
if (task.length > 0) {
task.forEach((row) => {
Object.values(row).forEach((value) => {
Expand Down

0 comments on commit 6a9fa7e

Please sign in to comment.