Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalha07 committed Jan 14, 2025
1 parent 5546d09 commit c622710
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/test/features/chat_ng/messages/chat_mentions_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ ParsedContent parseDocumentContent(Document document) {

void main() {
group('mentions parsing', () {
final editorState = EditorState.blank();
final node = paragraphNode(delta: Delta()..insert(''));
editorState.document.insert([0], [node]);
test(
'verify multiple mentions with simple plain text',
() async {
final editorState = EditorState.blank();
final node = paragraphNode(delta: Delta()..insert(''));
editorState.document.insert([0], [node]);
final transaction = editorState.transaction;
transaction.replaceText(node, 0, 0, 'Hello ');

Expand Down Expand Up @@ -98,6 +98,9 @@ void main() {
);

test('verify multiple mentions with markdown/rich text', () {
final editorState = EditorState.blank();
final node = paragraphNode(delta: Delta()..insert(''));
editorState.document.insert([0], [node]);
final transaction = editorState.transaction;

// Bold text
Expand Down

0 comments on commit c622710

Please sign in to comment.