Skip to content
Extraits de code Groupes Projets
Valider 88355cb4 rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

And subdomain tests too

parent 8ebd691a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -266,6 +266,10 @@ describe("MatrixEventProcessor", () => {
processor.FindMentionsInPlainBody("I really love going to https://TestUsername.com", members),
"I really love going to https://TestUsername.com",
);
Chai.assert.equal(
processor.FindMentionsInPlainBody("I really love going to www.TestUsername.com", members),
"I really love going to www.TestUsername.com",
);
});
it("processes mentioned nickname correctly", async () => {
const processor = createMatrixEventProcessor();
......@@ -318,6 +322,10 @@ describe("MatrixEventProcessor", () => {
processor.FindMentionsInPlainBody("I really love going to https://Test.com", members),
"I really love going to https://Test.com",
);
Chai.assert.equal(
processor.FindMentionsInPlainBody("I really love going to www.Test.com", members),
"I really love going to www.Test.com",
);
});
it("processes non-mentions correctly", async () => {
const processor = createMatrixEventProcessor();
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter