@@ -1142,9 +1142,10 @@ describe('order of recurring tasks', () => {
1142
1142
const lines = task . toggleWithRecurrenceInUsersOrder ( ) . map ( ( t ) => t . toFileLineString ( ) ) ;
1143
1143
1144
1144
// Assert
1145
- expect ( lines . length ) . toEqual ( 2 ) ;
1146
- expect ( lines [ 0 ] ) . toMatchInlineSnapshot ( '"- [ ] this is a recurring task π every day"' ) ;
1147
- expect ( lines [ 1 ] ) . toMatchInlineSnapshot ( '"- [x] this is a recurring task π every day β
2023-05-16"' ) ;
1145
+ expect ( lines ) . toStrictEqual ( [
1146
+ '- [ ] this is a recurring task π every day' ,
1147
+ '- [x] this is a recurring task π every day β
2023-05-16' ,
1148
+ ] ) ;
1148
1149
} ) ;
1149
1150
1150
1151
it ( 'should honour new-task-before-old setting' , ( ) => {
@@ -1156,9 +1157,10 @@ describe('order of recurring tasks', () => {
1156
1157
const lines = task . toggleWithRecurrenceInUsersOrder ( ) . map ( ( t ) => t . toFileLineString ( ) ) ;
1157
1158
1158
1159
// Assert
1159
- expect ( lines . length ) . toEqual ( 2 ) ;
1160
- expect ( lines [ 0 ] ) . toMatchInlineSnapshot ( '"- [ ] this is a recurring task π every day"' ) ;
1161
- expect ( lines [ 1 ] ) . toMatchInlineSnapshot ( '"- [x] this is a recurring task π every day β
2023-05-16"' ) ;
1160
+ expect ( lines ) . toStrictEqual ( [
1161
+ '- [ ] this is a recurring task π every day' ,
1162
+ '- [x] this is a recurring task π every day β
2023-05-16' ,
1163
+ ] ) ;
1162
1164
} ) ;
1163
1165
1164
1166
it ( 'should honour old-task-before-new setting' , ( ) => {
@@ -1170,9 +1172,10 @@ describe('order of recurring tasks', () => {
1170
1172
const lines = task . toggleWithRecurrenceInUsersOrder ( ) . map ( ( t ) => t . toFileLineString ( ) ) ;
1171
1173
1172
1174
// Assert
1173
- expect ( lines . length ) . toEqual ( 2 ) ;
1174
- expect ( lines [ 0 ] ) . toMatchInlineSnapshot ( '"- [x] this is a recurring task π every day β
2023-05-16"' ) ;
1175
- expect ( lines [ 1 ] ) . toMatchInlineSnapshot ( '"- [ ] this is a recurring task π every day"' ) ;
1175
+ expect ( lines ) . toStrictEqual ( [
1176
+ '- [x] this is a recurring task π every day β
2023-05-16' ,
1177
+ '- [ ] this is a recurring task π every day' ,
1178
+ ] ) ;
1176
1179
} ) ;
1177
1180
} ) ;
1178
1181
0 commit comments