You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2021. It is now read-only.
Expected results:
The URL is rendered as "http://…ple.com", but as an href attribute of "http://example.com"
Actual results:
The URL is rendered as "http://…ple.com", as well as the href attribute, which is wrong
The following test should pass, which it does not at the moment:
it("renders a URL for a cropped string",()=>{consturl="http://example.com";constopenLink=jest.fn();constelement=renderRep(url,{
openLink,useQuotes: false,cropLimit: 15});expect(element.text()).toEqual(url);constlink=element.find("a");expect(link.prop("href")).toBe(url);expect(link.prop("title")).toBe(url);link.simulate("click");expect(openLink).toBeCalledWith(url);});