Skip to content

Commit 5673540

Browse files
committed
test: . Move sample statuses out to scope where they can be re-used
1 parent 4a9dd95 commit 5673540

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/Statuses/StatusSettingsReport.test.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ describe('StatusSettingsReport', () => {
3737
verifyWithFileExtension(markdown, '.md');
3838
});
3939

40+
const customStatusesDataForSampleLines: StatusCollection = [
41+
['/', 'A slash', 'x', 'IN_PROGRESS'],
42+
['/', 'In Progress DUPLICATE - SHOULD NOT BE IN SAMPLE TASK LINES', 'x', 'IN_PROGRESS'],
43+
['', 'EMPTY STATUS SYMBOL - SHOULD NOT BE IN SAMPLE TASK LINES', '', 'TODO'],
44+
['p', 'A p', 'q', 'TODO'],
45+
];
46+
4047
it('should create set of sample task lines, excluding duplicate and empty symbols', () => {
41-
const customStatusesData: StatusCollection = [
42-
['/', 'A slash', 'x', 'IN_PROGRESS'],
43-
['/', 'In Progress DUPLICATE - SHOULD NOT BE IN SAMPLE TASK LINES', 'x', 'IN_PROGRESS'],
44-
['', 'EMPTY STATUS SYMBOL - SHOULD NOT BE IN SAMPLE TASK LINES', '', 'TODO'],
45-
['p', 'A p', 'q', 'TODO'],
46-
];
47-
const { statusSettings } = createStatuses(coreStatusesData, customStatusesData);
48+
const { statusSettings } = createStatuses(coreStatusesData, customStatusesDataForSampleLines);
4849

4950
const taskLines = sampleTaskLinesForValidStatuses(statusSettings);
5051
verifyWithFileExtension(taskLines.join('\n'), '.md');

0 commit comments

Comments
 (0)