You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
add Ended poll text to ended poll reply formatted body (#10146)
This commit is contained in:
@ -17,6 +17,7 @@ limitations under the License.
|
||||
import { IContent, MatrixEvent, MsgType } from "matrix-js-sdk/src/matrix";
|
||||
import { M_BEACON_INFO } from "matrix-js-sdk/src/@types/beacon";
|
||||
import { LocationAssetType, M_ASSET } from "matrix-js-sdk/src/@types/location";
|
||||
import { M_POLL_END } from "matrix-js-sdk/src/@types/polls";
|
||||
|
||||
import {
|
||||
getNestedReplyText,
|
||||
@ -149,6 +150,14 @@ But this is not
|
||||
expect(getNestedReplyText(event, mockPermalinkGenerator)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
it("should create the expected fallback text for poll end events", () => {
|
||||
const event = makeTestEvent(M_POLL_END.name, {
|
||||
body: "body",
|
||||
});
|
||||
|
||||
expect(getNestedReplyText(event, mockPermalinkGenerator)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
describe("shouldDisplayReply", () => {
|
||||
|
Reference in New Issue
Block a user