Skip to content

Commit c1218eb

Browse files
committed
test: - Move toEmoji() to FilterTestHelpers.ts
1 parent 2ef9341 commit c1218eb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

tests/Task/Task.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { TaskBuilder } from '../TestingTools/TaskBuilder';
1616
import { RecurrenceBuilder } from '../TestingTools/RecurrenceBuilder';
1717
import { Priority } from '../../src/Task/Priority';
1818
import { SampleTasks } from '../TestingTools/SampleTasks';
19+
import { toEmoji } from '../TestingTools/FilterTestHelpers';
1920

2021
window.moment = moment;
2122

@@ -562,10 +563,6 @@ describe('task dependencies', () => {
562563
StatusRegistry.getInstance().resetToDefaultStatuses();
563564
});
564565

565-
function toEmoji(boolean: boolean) {
566-
return boolean ? '✅ true' : '❌ false';
567-
}
568-
569566
it('blocking and blocked', () => {
570567
const tasks = SampleTasks.withWideSelectionOfDependencyScenarios();
571568

tests/TestingTools/FilterTestHelpers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ export function shouldSupportFiltering(
9494
const filteredTaskLines = filteredTasks.map((task) => `- [ ] ${task.toString()}`);
9595
expect(filteredTaskLines).toMatchObject(expectedResult);
9696
}
97+
98+
export function toEmoji(boolean: boolean) {
99+
return boolean ? '✅ true' : '❌ false';
100+
}

0 commit comments

Comments
 (0)