Merge branch 'develop' into t3chguy/wat/230.1
This commit is contained in:
commit
7feb5a0b49
31 changed files with 523 additions and 155 deletions
|
@ -141,14 +141,6 @@ describe("PinningUtils", () => {
|
|||
|
||||
describe("canPin & canUnpin", () => {
|
||||
describe("canPin", () => {
|
||||
test("should return false if pinning is disabled", () => {
|
||||
// Disable feature pinning
|
||||
jest.spyOn(SettingsStore, "getValue").mockReturnValue(false);
|
||||
const event = makePinEvent();
|
||||
|
||||
expect(PinningUtils.canPin(matrixClient, event)).toBe(false);
|
||||
});
|
||||
|
||||
test("should return false if event is not actionable", () => {
|
||||
mockedIsContentActionable.mockImplementation(() => false);
|
||||
const event = makePinEvent();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue