Skip to content

Commit

Permalink
add copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 10, 2024
1 parent b3a7445 commit 1c84b09
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion test/integration/messageIsMediaProtectionTest.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/


import { MatrixClient } from "@vector-im/matrix-bot-sdk";
import { newTestUser } from "./clientHelper";
import { getFirstReaction } from "./commands/commandUtils";
Expand Down Expand Up @@ -48,7 +65,7 @@ describe("Test: Message is media", function () {
let content = { msgtype: "m.image", body: "test.jpeg", url: mxc };
let imageMessage = await client.sendMessage(testRoom, content);

let formatted_body = `<img src=${mxc} />`;
let formatted_body = `<img src="${mxc}" />`;
let htmlContent = {
msgtype: "m.image",
body: formatted_body,
Expand Down

0 comments on commit 1c84b09

Please sign in to comment.