add helpers for beacon duration calculations (#8101)

* add helpers for beacon duration calculations

Signed-off-by: Kerry Archibald <kerrya@element.io>

* makeBeaconInfoEvent timestsamp prop

Signed-off-by: Kerry Archibald <kerrya@element.io>

* ad copyright

Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
Kerry
2022-03-22 10:46:47 +00:00
committed by GitHub
parent abc225d3c6
commit a80e55d38d
5 changed files with 145 additions and 3 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ import { getMockClientWithEventEmitter } from "../test-utils/client";
jest.useFakeTimers();
describe('OwnBeaconStore', () => {
// xdescribing while mismatch with matrix-js-sdk
xdescribe('OwnBeaconStore', () => {
// 14.03.2022 16:15
const now = 1647270879403;
const HOUR_MS = 3600000;