From 8668b88a950c5ce2b2554ecede022e37332d48e5 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 13 Aug 2020 00:54:24 +0200 Subject: [PATCH] MarkdownToolBar: Test h1 removal --- test/markdown_toolbar_test.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/markdown_toolbar_test.dart b/test/markdown_toolbar_test.dart index 5460c9fe..21529bb3 100644 --- a/test/markdown_toolbar_test.dart +++ b/test/markdown_toolbar_test.dart @@ -21,6 +21,7 @@ void main() { ); expect(modifyCurrentLine(val, '# '), expectedVal); + expect(modifyCurrentLine(expectedVal, '# '), val); } test('Adds a header to the first line correctly', () { @@ -59,12 +60,6 @@ void main() { ); }); - // Removes from first line - // Removes from last line - // Removes from middle line - // Removes when cursor is in the middle of a word // Removes when cursor is at the start of the line // Removes when cursor is in between '#' and ' ' - - // TODO: Simplify the tests, avoid all this code duplication }