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 55ca168 commit 20a5813Copy full SHA for 20a5813
__tests__/index.spec.tsx
@@ -178,6 +178,21 @@ describe("Ansi", () => {
178
);
179
});
180
181
+ test("can handle URLs inside query parameters", () => {
182
+ const el = shallow(
183
+ React.createElement(
184
+ Ansi,
185
+ { linkify: true },
186
+ "www.google.com/?q=https://www.google.com"
187
+ )
188
+ );
189
+ expect(el).not.toBeNull();
190
+ expect(el.text()).toBe("www.google.com/?q=https://www.google.com");
191
+ expect(el.html()).toBe(
192
+ '<code><span><a href="http://www.google.com/?q=https://www.google.com" target="_blank">www.google.com/?q=https://www.google.com</a></span></code>'
193
194
+ });
195
+
196
describe("useClasses options", () => {
197
test("can add the font color class", () => {
198
const el = shallow(
0 commit comments