Fix regressions around media uploads failing and causing soft crashes (#9549)
This commit is contained in:
parent
be5a8ca3b9
commit
77764d80bc
6 changed files with 17 additions and 218 deletions
|
@ -232,6 +232,15 @@ describe("Notifier", () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe("getSoundForRoom", () => {
|
||||
it("should not explode if given invalid url", () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
|
||||
return { url: { content_uri: "foobar" } };
|
||||
});
|
||||
expect(Notifier.getSoundForRoom("!roomId:server")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe("_playAudioNotification", () => {
|
||||
it.each([
|
||||
{ event: { is_silenced: true }, count: 0 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue