Skip to content

Commit 27fb6bb

Browse files
committed
test: Move updateSettings() calls to start of test
1 parent dbfff20 commit 27fb6bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Task.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,8 @@ describe('order of recurring tasks', () => {
11501150

11511151
it('should honour new-task-before-old setting', () => {
11521152
// Arrange
1153-
const task = fromLine({ line: '- [ ] this is a recurring task 🔁 every day' });
11541153
updateSettings({ recurrenceOnNextLine: false });
1154+
const task = fromLine({ line: '- [ ] this is a recurring task 🔁 every day' });
11551155

11561156
// Act
11571157
const lines = task.toggleWithRecurrenceInUsersOrder().map((t) => t.toFileLineString());
@@ -1165,8 +1165,8 @@ describe('order of recurring tasks', () => {
11651165

11661166
it('should honour old-task-before-new setting', () => {
11671167
// Arrange
1168-
const task = fromLine({ line: '- [ ] this is a recurring task 🔁 every day' });
11691168
updateSettings({ recurrenceOnNextLine: true });
1169+
const task = fromLine({ line: '- [ ] this is a recurring task 🔁 every day' });
11701170

11711171
// Act
11721172
const lines = task.toggleWithRecurrenceInUsersOrder().map((t) => t.toFileLineString());

0 commit comments

Comments
 (0)