diff --git a/src/renderer/components/basic-list/basic-list.component.tsx b/src/renderer/components/basic-list/basic-list.component.tsx index 97eb3146c2..2069d93ec8 100644 --- a/src/renderer/components/basic-list/basic-list.component.tsx +++ b/src/renderer/components/basic-list/basic-list.component.tsx @@ -15,32 +15,29 @@ import './basic-list.component.scss'; export const TAB_TYPE_BASIC_LIST = 'basic-list'; -type checkResult = { +type CheckResult = { book: string; chapter?: number; verse?: number; issueDescription: string; - subRows?: checkResult[]; + subRows?: CheckResult[]; }; -const newCheckResult = (bookId: string): checkResult => { - return { - book: Canon.bookIdToEnglishName(bookId), - chapter: faker.number.int(40), - verse: faker.number.int(40), - issueDescription: 'Basic check issue description', - }; -}; +const newCheckResult = (bookId: string): CheckResult => ({ + book: Canon.bookIdToEnglishName(bookId), + chapter: faker.number.int(40), + verse: faker.number.int(40), + issueDescription: 'Basic check issue description', +}); -export function makeMockCheckResults() { - const { allBookIds } = Canon; - return allBookIds.map((bookId) => { +function makeMockCheckResults() { + return Canon.allBookIds.map((bookId) => { const numberOfIssues: number = faker.number.int({ min: 1, max: 10 }); - const bookResults: checkResult = { + const bookResults: CheckResult = { book: Canon.bookIdToEnglishName(bookId), issueDescription: `${numberOfIssues} issues`, }; - const subResults: checkResult[] = []; + const subResults: CheckResult[] = []; for (let i = 0; i < numberOfIssues; i++) { subResults.push(newCheckResult(bookId)); } @@ -49,7 +46,7 @@ export function makeMockCheckResults() { }); } -const columns: ColumnDef[] = [ +const columns: ColumnDef[] = [ { header: 'Scripture reference', columns: [