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
Update casing
See https://github.com/matrix-org/matrix-js-sdk/pull/2915#discussion_r1041542066
This commit is contained in:
@ -274,7 +274,7 @@ describe("MatrixClient", function() {
|
|||||||
describe('timestampToEvent', () => {
|
describe('timestampToEvent', () => {
|
||||||
const roomId = '!room:server.org';
|
const roomId = '!room:server.org';
|
||||||
const eventId = "$eventId:example.org";
|
const eventId = "$eventId:example.org";
|
||||||
const unstableMsc3030Prefix = "/_matrix/client/unstable/org.matrix.msc3030";
|
const unstableMSC3030Prefix = "/_matrix/client/unstable/org.matrix.msc3030";
|
||||||
|
|
||||||
it('should call stable endpoint', async () => {
|
it('should call stable endpoint', async () => {
|
||||||
httpLookups = [{
|
httpLookups = [{
|
||||||
@ -318,7 +318,7 @@ describe("MatrixClient", function() {
|
|||||||
}, {
|
}, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
path: `/rooms/${encodeURIComponent(roomId)}/timestamp_to_event`,
|
path: `/rooms/${encodeURIComponent(roomId)}/timestamp_to_event`,
|
||||||
prefix: unstableMsc3030Prefix,
|
prefix: unstableMSC3030Prefix,
|
||||||
data: { event_id: eventId },
|
data: { event_id: eventId },
|
||||||
expectQueryParams: {
|
expectQueryParams: {
|
||||||
ts: '0',
|
ts: '0',
|
||||||
@ -354,7 +354,7 @@ describe("MatrixClient", function() {
|
|||||||
{ prefix: unstablePrefix },
|
{ prefix: unstablePrefix },
|
||||||
] = client.http.authedRequest.mock.calls[1];
|
] = client.http.authedRequest.mock.calls[1];
|
||||||
expect(unstableMethod).toStrictEqual('GET');
|
expect(unstableMethod).toStrictEqual('GET');
|
||||||
expect(unstablePrefix).toStrictEqual(unstableMsc3030Prefix);
|
expect(unstablePrefix).toStrictEqual(unstableMSC3030Prefix);
|
||||||
expect(unstablePath).toStrictEqual(
|
expect(unstablePath).toStrictEqual(
|
||||||
`/rooms/${encodeURIComponent(roomId)}/timestamp_to_event`,
|
`/rooms/${encodeURIComponent(roomId)}/timestamp_to_event`,
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user