1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

Make the display_name check for contains rather than equality. Add UT.

This commit is contained in:
Kegan Dougal
2015-11-09 16:50:10 +00:00
parent b0655d0431
commit b231f19ec6
2 changed files with 12 additions and 3 deletions

View File

@ -372,5 +372,14 @@ describe("MatrixClient", function() {
expect(httpLookups.length).toEqual(0);
});
it("should throw if the displayName contains the address in it",
function() {
expect(function() {
client.inviteByEmail(
roomId, "alice@gmail.com", "My Friend Alice (alice@gmail.com)"
);
}).toThrow();
});
});
});