Skip to content

Commit 9091eda

Browse files
committed
test: - Add failing tests for #3708
1 parent 932a380 commit 9091eda

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/Commands/ToggleDone.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ describe('ToggleDone', () => {
115115
testToggleLine('1. |foobar', '1. [ ] foobar|');
116116
});
117117

118-
it('should complete a task', () => {
118+
it.failing('should complete a task', () => {
119119
testToggleLine('|- [ ] ', '|- [x] ✅ 2022-09-04');
120120
testToggleLine('- [ ] |', '- [x] | ✅ 2022-09-04');
121121
testToggleLine('- [ ] description|', '- [x] description| ✅ 2022-09-04');
@@ -127,19 +127,19 @@ describe('ToggleDone', () => {
127127

128128
// Done date is not added if task does not match global filter
129129
testToggleLine('|- [ ] ', '|- [x] ');
130-
testToggleLine('- [ ] |', '- [x] |');
130+
testToggleLine('1. [ ] |', '1. [x] |');
131131

132132
// Done date is added if task does not match global filter
133133
testToggleLine('- [ ] #task|', '- [x] #tas|k ✅ 2022-09-04'); // Extra space added before #; cursor moves left
134-
testToggleLine('- [ ] #task description|', '- [x] #task description| ✅ 2022-09-04');
134+
testToggleLine('* [ ] #task description|', '* [x] #task description| ✅ 2022-09-04');
135135

136136
// Issue #449 - cursor jumped 13 characters to the right on completion
137137
testToggleLine('- [ ] I have a |proper description', '- [x] I have a |proper description');
138138
});
139139

140-
it('should un-complete a completed task', () => {
140+
it.failing('should un-complete a completed task', () => {
141141
testToggleLine('|- [x] ✅ 2022-09-04', '|- [ ] ');
142-
testToggleLine('- [x] ✅ 2022-09-04|', '- [ ] |');
142+
testToggleLine('1. [x] ✅ 2022-09-04|', '1. [ ] |');
143143

144144
// Issue #449 - cursor jumped 13 characters to the left on un-completion
145145
testToggleLine('- [x] I have a proper description| ✅ 2022-09-04', '- [ ] I have a proper description|');
@@ -148,11 +148,11 @@ describe('ToggleDone', () => {
148148

149149
// Done date is not removed if task does not match global filter
150150
testToggleLine('|- [x] ✅ 2022-09-04', '|- [ ] ✅ 2022-09-04');
151-
testToggleLine('- [x] ✅ 2022-09-04|', '- [ ] ✅ 2022-09-04|');
151+
testToggleLine('+ [x] ✅ 2022-09-04|', '+ [ ] ✅ 2022-09-04|');
152152

153153
// Done date is added if task matches the global filter
154154
testToggleLine('|- [x] #task ✅ 2022-09-04', '|- [ ] #task'); // Extra space added before #
155-
testToggleLine('- [x] #task description ✅ 2022-09-04|', '- [ ] #task description|');
155+
testToggleLine('1. [x] #task description ✅ 2022-09-04|', '1. [ ] #task description|');
156156

157157
// Issue #449 - cursor jumped 13 characters to the left on un-completion
158158
testToggleLine(

0 commit comments

Comments
 (0)