Skip to content

Commit a1443ef

Browse files
committed
test: Move similar tests closer to each other
1 parent c34b33d commit a1443ef

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

β€Žtests/TaskLineRenderer.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,26 @@ describe('task line rendering - layout options', () => {
218218
);
219219
});
220220

221+
it('renders a done task correctly with the default layout', async () => {
222+
await testLayoutOptions(
223+
[
224+
'Do exercises #todo #health',
225+
' πŸ†” abcdef',
226+
' ⛔️ 123456,abc123',
227+
' πŸ”Ό',
228+
' πŸ” every day when done',
229+
' βž• 2023-07-01',
230+
' πŸ›« 2023-07-02',
231+
' ⏳ 2023-07-03',
232+
' πŸ“… 2023-07-04',
233+
' ❌ 2023-07-06',
234+
' βœ… 2023-07-05',
235+
' ^dcf64c',
236+
],
237+
taskLayoutComponents,
238+
);
239+
});
240+
221241
it('renders with priority', async () => {
222242
await testLayoutOptions(['Do exercises #todo #health', ' πŸ”Ό'], ['priority']);
223243
});
@@ -242,26 +262,6 @@ describe('task line rendering - layout options', () => {
242262
await testLayoutOptions(['Do exercises #todo #health', ' πŸ“… 2023-07-04'], ['dueDate']);
243263
});
244264

245-
it('renders a done task correctly with the default layout', async () => {
246-
await testLayoutOptions(
247-
[
248-
'Do exercises #todo #health',
249-
' πŸ†” abcdef',
250-
' ⛔️ 123456,abc123',
251-
' πŸ”Ό',
252-
' πŸ” every day when done',
253-
' βž• 2023-07-01',
254-
' πŸ›« 2023-07-02',
255-
' ⏳ 2023-07-03',
256-
' πŸ“… 2023-07-04',
257-
' ❌ 2023-07-06',
258-
' βœ… 2023-07-05',
259-
' ^dcf64c',
260-
],
261-
taskLayoutComponents,
262-
);
263-
});
264-
265265
it('renders with done date', async () => {
266266
await testLayoutOptions(['Do exercises #todo #health', ' βœ… 2023-07-05'], ['doneDate']);
267267
});

0 commit comments

Comments
Β (0)