fix: make the checkbox test pass

This commit is contained in:
Thomas F. K. Jorna 2022-05-17 10:57:42 +02:00
parent 725d3e2b98
commit 1fe2b4ae2a
4 changed files with 11 additions and 7 deletions

View File

@ -375,7 +375,7 @@
}, },
{ {
"type": "line", "type": "line",
"pattern": "- [ ]" "pattern": "- \\[ \\]"
} }
] ]
}, },

View File

@ -226,21 +226,23 @@ diff --git a/tests/example_file.md b/src/tests/example_file.md
index 525e25d..ba4e68d 100644 index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.md --- a/src/tests/example_file.md
+++ b/src/tests/example_file.md +++ b/src/tests/example_file.md
@@ -1,6 +0,0 @@ @@ -1,7 +0,0 @@
- {/* TODO: Hopefully this comment turns into a todo issue */} - {/* TODO: Hopefully this comment turns into a todo issue */}
- {/* - {/*
- TODO:Multiline comments - TODO:Multiline comments
- also need to be turned into todos, and hopefully - also need to be turned into todos, and hopefully
- kept together as one todo - kept together as one todo
- */} - */}
- - [ ] TODO: An inline todo that's NOT a comment (what)
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
index 525e25d..ba4e68d 100644 index 525e25d..ba4e68d 100644
--- a/src/tests/example_file.mdx --- a/src/tests/example_file.mdx
+++ b/src/tests/example_file.mdx +++ b/src/tests/example_file.mdx
@@ -1,6 +0,0 @@ @@ -1,7 +0,0 @@
- {/* TODO: Hopefully this comment turns into a todo issue */} - {/* TODO: Hopefully this comment turns into a todo issue */}
- {/* - {/*
- TODO:Multiline comments - TODO:Multiline comments
- also need to be turned into todos, and hopefully - also need to be turned into todos, and hopefully
- kept together as one todo - kept together as one todo
- */} - */}
- - [ ] TODO: An inline todo that's NOT a comment (what)

View File

@ -237,22 +237,24 @@ new file mode 100644
index 0000000..7cccc5b index 0000000..7cccc5b
--- /dev/null --- /dev/null
+++ b/src/tests/example_file.md +++ b/src/tests/example_file.md
@@ -0,0 +1,6 @@ @@ -0,0 +1,7 @@
+ {/* TODO: Hopefully this comment turns into a todo issue */} + {/* TODO: Hopefully this comment turns into a todo issue */}
+ {/* + {/*
+ TODO:Multiline comments + TODO:Multiline comments
+ also need to be turned into todos, and hopefully + also need to be turned into todos, and hopefully
+ kept together as one todo + kept together as one todo
+ */} + */}
+ - [ ] TODO: An inline todo that's NOT a comment (what)
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
new file mode 100644 new file mode 100644
index 0000000..7cccc5b index 0000000..7cccc5b
--- /dev/null --- /dev/null
+++ b/src/tests/example_file.mdx +++ b/src/tests/example_file.mdx
@@ -0,0 +1,6 @@ @@ -0,0 +1,7 @@
+ {/* TODO: Hopefully this comment turns into a todo issue */} + {/* TODO: Hopefully this comment turns into a todo issue */}
+ {/* + {/*
+ TODO:Multiline comments + TODO:Multiline comments
+ also need to be turned into todos, and hopefully + also need to be turned into todos, and hopefully
+ kept together as one todo + kept together as one todo
+ */} + */}
+ - [ ] TODO: An inline todo that's NOT a comment (what)

View File

@ -65,7 +65,7 @@ class NewIssueTests(unittest.TestCase):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2) self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
def test_md_issues(self): def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 4) self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
class ClosedIssueTests(unittest.TestCase): class ClosedIssueTests(unittest.TestCase):
@ -121,7 +121,7 @@ class ClosedIssueTests(unittest.TestCase):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2) self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
def test_md_issues(self): def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 4) self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 6)
class IgnorePatternTests(unittest.TestCase): class IgnorePatternTests(unittest.TestCase):