Skip to content

Commit 77174e2

Browse files
committed
updating build output for testing
1 parent 930913d commit 77174e2

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

src/core/content-type/audit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default function buildOutput(logs: any, users: any): BuildOutput {
2222
header: null,
2323
body: table(rows),
2424
footer: null,
25+
rows: rows,
2526
hasResults: rows.length > 1,
2627
}
2728
}

src/core/content-type/build-output.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ export type BuildOutput = {
22
header: string | null;
33
body: string;
44
footer: string | null;
5+
rows: string[][];
56
hasResults: boolean;
6-
}
7+
}

src/core/content-type/compare.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default async function buildOutput(contentTypeName: string, previous: any
1414
matching: 'lines',
1515
})
1616

17-
await tmp.file({prefix: `${contentTypeName}-compare`, postfix: '.html', keep: true}, async function (err: any, path: any, _fd: any, _cleanupCallback: any) {
17+
tmp.file({prefix: `${contentTypeName}-compare`, postfix: '.html', keep: true}, async function (err: any, path: any, _fd: any, _cleanupCallback: any) {
1818
if (err) throw err
1919
fs.writeFileSync(path, html(diffHtml))
2020
await cli.open(path)
@@ -24,6 +24,7 @@ export default async function buildOutput(contentTypeName: string, previous: any
2424
header: null,
2525
body: 'Please check the browser output.',
2626
footer: null,
27+
rows: [],
2728
hasResults: true,
2829
}
2930
}

src/core/content-type/details.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ export default function buildOutput(contentType: any, references: any, options:
1616

1717
return {
1818
header: header,
19-
body: body.body,
19+
body: body.table,
2020
footer: null,
21+
rows: body.rows,
2122
hasResults: body.hasRows,
2223
}
2324
}
@@ -38,7 +39,8 @@ function buildBody(schema: any) {
3839

3940
return {
4041
hasRows: rows.length > 1,
41-
body: table(rows),
42+
rows: rows,
43+
table: table(rows),
4244
}
4345
}
4446

src/core/content-type/list.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default function buildOutput(contentTypes: any, order: string): BuildOutp
2525
header: null,
2626
body: table(rows),
2727
footer: `Count: ${contentTypes.count}`,
28+
rows: rows,
2829
hasResults: rows.length > 1,
2930
}
3031
}

0 commit comments

Comments
 (0)