@@ -1122,7 +1122,7 @@ describe('set correct created date on reccurence task', () => {
1122
1122
} ) ;
1123
1123
} ) ;
1124
1124
1125
- describe ( 'next task recurrence appearance ' , ( ) => {
1125
+ describe ( 'order of recurring tasks ' , ( ) => {
1126
1126
beforeAll ( ( ) => {
1127
1127
jest . useFakeTimers ( ) ;
1128
1128
jest . setSystemTime ( new Date ( 2023 , 5 - 1 , 16 ) ) ;
@@ -1134,7 +1134,7 @@ describe('next task recurrence appearance', () => {
1134
1134
resetSettings ( ) ;
1135
1135
} ) ;
1136
1136
1137
- it ( 'new task shall appear on previous line by default' , ( ) => {
1137
+ it ( 'should put new task before old, by default' , ( ) => {
1138
1138
// Arrange
1139
1139
const task = fromLine ( { line : '- [ ] this is a recurring task π every day' } ) ;
1140
1140
@@ -1147,7 +1147,7 @@ describe('next task recurrence appearance', () => {
1147
1147
expect ( lines [ 1 ] ) . toMatchInlineSnapshot ( '"- [x] this is a recurring task π every day β
2023-05-16"' ) ;
1148
1148
} ) ;
1149
1149
1150
- it ( 'new task shall appear on next line with the setting set to false ' , ( ) => {
1150
+ it ( 'should honour new- task-before-old setting' , ( ) => {
1151
1151
// Arrange
1152
1152
const task = fromLine ( { line : '- [ ] this is a recurring task π every day' } ) ;
1153
1153
updateSettings ( { recurrenceOnNextLine : false } ) ;
@@ -1161,7 +1161,7 @@ describe('next task recurrence appearance', () => {
1161
1161
expect ( lines [ 1 ] ) . toMatchInlineSnapshot ( '"- [x] this is a recurring task π every day β
2023-05-16"' ) ;
1162
1162
} ) ;
1163
1163
1164
- it ( 'new task shall appear on next line with the setting set to true ' , ( ) => {
1164
+ it ( 'should honour old- task-before-new setting' , ( ) => {
1165
1165
// Arrange
1166
1166
const task = fromLine ( { line : '- [ ] this is a recurring task π every day' } ) ;
1167
1167
updateSettings ( { recurrenceOnNextLine : true } ) ;
0 commit comments