mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-10 21:13:57 +08:00
MarkdownToolbar: Bold: Add more tests
This commit is contained in:
@ -146,4 +146,24 @@ void main() {
|
||||
char: '**',
|
||||
);
|
||||
});
|
||||
|
||||
test("Surrounds the middle word", () {
|
||||
_testWord(
|
||||
before: 'Hello Hydra Person',
|
||||
beforeOffset: 8,
|
||||
after: 'Hello **Hydra** Person',
|
||||
afterOffset: 13,
|
||||
char: '**',
|
||||
);
|
||||
});
|
||||
|
||||
test("Removes the middle word", () {
|
||||
_testWord(
|
||||
before: 'Hello **Hydra** Person',
|
||||
beforeOffset: 9,
|
||||
after: 'Hello Hydra Person',
|
||||
afterOffset: 11,
|
||||
char: '**',
|
||||
);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user