Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Dec 8, 2023
1 parent ef1a9ca commit 8ece48f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/meteor/tests/unit/app/mentions/client.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MentionsParser } from '../../../../app/mentions/lib/MentionsParser';
let mentionsParser;
beforeEach(() => {
mentionsParser = new MentionsParser({
pattern: '[0-9a-zA-Z-_.]+',
pattern: () => '[0-9a-zA-Z-_.]+',
me: () => 'me',
});
});
Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/tests/unit/app/mentions/server.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let mention;

beforeEach(() => {
mention = new MentionsServer({
pattern: '[0-9a-zA-Z-_.]+',
pattern: () => '[0-9a-zA-Z-_.]+',
messageMaxAll: () => 4, // || RocketChat.settings.get('Message_MaxAll')
getUsers: async (usernames) =>
[
Expand Down

0 comments on commit 8ece48f

Please sign in to comment.