partey_workadventure/front/tests/Phaser/Game/HtmlUtilsTest.ts
Alexis Faizeau d1e8243c47
Zod EVERYWHERE (#2027)
* Zod EVERYWHERE

* Add no-unused-vars rule to eslint in front

* Add no-unused-vars rule to eslint in pusher

* Add no-unused-vars rule to eslint in back

* Remove unused PlayerTexture guards

* Fix data providing on room connection

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
2022-04-12 14:21:19 +02:00

20 lines
723 B
TypeScript

import "jasmine";
describe("urlify()", () => {
// FIXME: we need to add PhantomJS to have a good mock for "document".
/*it("should transform an url into a link", () => {
const text = HtmlUtils.urlify('foo https://google.com bar');
expect(text).toEqual('foo <a href="https://google.com" target="_blank" style=":visited {color: white}">https://google.com</a> bar');
});
it("should not transform a normal text into a link", () => {
const text = HtmlUtils.urlify('hello');
expect(text).toEqual('hello');
});
it("should escape HTML", () => {
const text = HtmlUtils.urlify('<h1>boo</h1>');
expect(text).toEqual('&lt;h1&gt;boo&lt;/h1&gt;');
});*/
});