Skip to content

Commit 2ef5800

Browse files
committed
test: Improve test names, including fixing copy-paste error
1 parent 8a4bdf3 commit 2ef5800

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€Žtests/Task.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ describe('set correct created date on reccurence task', () => {
11221122
});
11231123
});
11241124

1125-
describe('next task recurrence appearance', () => {
1125+
describe('order of recurring tasks', () => {
11261126
beforeAll(() => {
11271127
jest.useFakeTimers();
11281128
jest.setSystemTime(new Date(2023, 5 - 1, 16));
@@ -1134,7 +1134,7 @@ describe('next task recurrence appearance', () => {
11341134
resetSettings();
11351135
});
11361136

1137-
it('new task shall appear on previous line by default', () => {
1137+
it('should put new task before old, by default', () => {
11381138
// Arrange
11391139
const task = fromLine({ line: '- [ ] this is a recurring task πŸ” every day' });
11401140

@@ -1147,7 +1147,7 @@ describe('next task recurrence appearance', () => {
11471147
expect(lines[1]).toMatchInlineSnapshot('"- [x] this is a recurring task πŸ” every day βœ… 2023-05-16"');
11481148
});
11491149

1150-
it('new task shall appear on next line with the setting set to false', () => {
1150+
it('should honour new-task-before-old setting', () => {
11511151
// Arrange
11521152
const task = fromLine({ line: '- [ ] this is a recurring task πŸ” every day' });
11531153
updateSettings({ recurrenceOnNextLine: false });
@@ -1161,7 +1161,7 @@ describe('next task recurrence appearance', () => {
11611161
expect(lines[1]).toMatchInlineSnapshot('"- [x] this is a recurring task πŸ” every day βœ… 2023-05-16"');
11621162
});
11631163

1164-
it('new task shall appear on next line with the setting set to true', () => {
1164+
it('should honour old-task-before-new setting', () => {
11651165
// Arrange
11661166
const task = fromLine({ line: '- [ ] this is a recurring task πŸ” every day' });
11671167
updateSettings({ recurrenceOnNextLine: true });

0 commit comments

Comments
Β (0)