We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9eb520 commit e793c18Copy full SHA for e793c18
1 file changed
src/components/Utils/utils.test.ts
@@ -36,8 +36,27 @@ describe("Parsing lines with links", () => {
36
];
37
const links = parseLinks(lines);
38
expect(links.length).toBe(3);
39
- expect(links[0]?.text).toBeFalsy();
40
- expect(links[1]?.text?.endsWith(")")).toBeFalsy();
+ expect(links[0]?.text).toBeFalsy(); //
+ expect(links[1]?.text?.endsWith(")")).toBeFalsy(); //
41
expect(links[2]?.text).toBe(")");
42
});
43
44
+
45
+describe("", () => {
46
+ it("", () => {
47
+ const lines = [
48
+ {
49
+ text: "aaa bbb ccc",
50
+ },
51
52
+ text: "wrap1 'http://bla.alb/add' wrap2 wrap3",
53
54
55
+ text: "�[31m�[1m>�[22m�[2m�[39m�[90m �[36mthis�[39m�[33m.�[39mextend(�[36mthis",
56
57
+ ];
58
+ const links = parseLinks(lines);
59
+ expect(links[0]?.text).toBe("aaa bbb ccc");
60
+ //
61
+ });
62
+});
0 commit comments