Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5ca0745

Browse files
committed
Fix test URIs
Signed-off-by: Michael Weimann <[email protected]>
1 parent ec82943 commit 5ca0745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stores/widgets/StopGapWidgetDriver-test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -629,13 +629,13 @@ describe("StopGapWidgetDriver", () => {
629629
// eslint-disable-next-line no-restricted-properties
630630
client.mxcUrlToHttp.mockImplementation((mxcUrl) => {
631631
if (mxcUrl === "mxc://example.com/test_file") {
632-
return "https://example.com/_matrix/media/v3/download/test_file";
632+
return "https://example.com/_matrix/media/v3/download/example.com/test_file";
633633
}
634634

635635
return null;
636636
});
637637

638-
fetchMockJest.get("https://example.com/_matrix/media/v3/download/test_file", "test contents");
638+
fetchMockJest.get("https://example.com/_matrix/media/v3/download/example.com/test_file", "test contents");
639639

640640
const result = await driver.downloadFile("mxc://example.com/test_file");
641641
// A type test is impossible here because of

0 commit comments

Comments
 (0)