changed the color of the chat links and unit test

This commit is contained in:
kharhamel 2021-01-22 15:01:10 +01:00
parent 3d84a9c8cd
commit 4ad7f4d5a3
3 changed files with 22 additions and 10 deletions

View file

@ -0,0 +1,14 @@
import "jasmine";
import {HtmlUtils} from "../../../src/WebRtc/HtmlUtils";
describe("urlify()", () => {
it("should transform an url into a link", () => {
const text = HtmlUtils.urlify('https://google.com');
expect(text).toEqual('<a href="https://google.com" target="_blank" style=":visited {color: white}">https://google.com</a>');
});
it("should not transform a normal text into a link", () => {
const text = HtmlUtils.urlify('hello');
expect(text).toEqual('hello');
});
});