File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1147,6 +1147,20 @@ describe('next task recurrence appearance', () => {
1147
1147
expect ( tasks [ 1 ] . toString ( ) ) . toMatchInlineSnapshot ( '"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' , ( ) => {
1151
+ // Arrange
1152
+ const task = fromLine ( { line : '- [ ] this is a recurring task 🔁 every day' } ) ;
1153
+ updateSettings ( { recurrenceOnNextLine : false } ) ;
1154
+
1155
+ // Act
1156
+ const tasks = task . toggle ( ) ;
1157
+
1158
+ // Assert
1159
+ expect ( tasks . length ) . toEqual ( 2 ) ;
1160
+ expect ( tasks [ 0 ] . toString ( ) ) . toMatchInlineSnapshot ( '"this is a recurring task 🔁 every day"' ) ;
1161
+ expect ( tasks [ 1 ] . toString ( ) ) . toMatchInlineSnapshot ( '"this is a recurring task 🔁 every day ✅ 2023-05-16"' ) ;
1162
+ } ) ;
1163
+
1150
1164
it ( 'new task shall appear on next line with the setting set to true' , ( ) => {
1151
1165
// Arrange
1152
1166
const task = fromLine ( { line : '- [ ] this is a recurring task 🔁 every day' } ) ;
You can’t perform that action at this time.
0 commit comments