Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe("linkifyjs/string", () => {
/**
* The following tests were based on the documentation:
* https://soapbox.github.io/linkifyjs/docs/linkify-string.html
*/
const options: LinkifyOptions = {};
const str = '<p>For help with GitHub.com, please email support@github.com</p>';
const result1: string = linkifyStr(str, options);
const result2: string = linkifyStr(str);
});
describe("linkifyjs/string", () => {
/**
* The following tests were based on the documentation:
* https://soapbox.github.io/linkifyjs/docs/linkify-string.html
*/
const options: LinkifyOptions = {};
const str = '<p>For help with GitHub.com, please email support@github.com</p>';
const result1: string = linkifyStr(str, options);
const result2: string = linkifyStr(str);
});
export function linkifyString(str) {
return _linkifyString(str);
}