You've already forked matrix-js-sdk
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:
@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user