mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
fix: add test for .mdx
This commit is contained in:
parent
1ce77430b2
commit
e70ad788c5
@ -233,4 +233,14 @@ index 525e25d..ba4e68d 100644
|
|||||||
- 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
|
||||||
- */}
|
- */}
|
||||||
|
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
|
||||||
|
index 525e25d..ba4e68d 100644
|
||||||
|
--- a/src/tests/example_file.mdx
|
||||||
|
+++ b/src/tests/example_file.mdx
|
||||||
|
@@ -1,6 +0,0 @@
|
||||||
|
- {/* TODO: Hopefully this comment turns into a todo issue */}
|
||||||
|
- {/*
|
||||||
|
- TODO:Multiline comments
|
||||||
|
- also need to be turned into todos, and hopefully
|
||||||
|
- kept together as one todo
|
||||||
|
- */}
|
||||||
|
|||||||
@ -244,3 +244,15 @@ index 0000000..7cccc5b
|
|||||||
+ 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
|
||||||
+ */}
|
+ */}
|
||||||
|
diff --git a/tests/example_file.mdx b/src/tests/example_file.mdx
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..7cccc5b
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/tests/example_file.mdx
|
||||||
|
@@ -0,0 +1,6 @@
|
||||||
|
+ {/* TODO: Hopefully this comment turns into a todo issue */}
|
||||||
|
+ {/*
|
||||||
|
+ TODO:Multiline comments
|
||||||
|
+ also need to be turned into todos, and hopefully
|
||||||
|
+ kept together as one todo
|
||||||
|
+ */}
|
||||||
|
|||||||
@ -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'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 4)
|
||||||
|
|
||||||
|
|
||||||
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'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 4)
|
||||||
|
|
||||||
|
|
||||||
class IgnorePatternTests(unittest.TestCase):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user