Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("returns an array of ancestor names (with preceding punctuation) if there are ancestors, the direct ancestor with following punctuation too", () => {
let links = helper.getAncestorLinks(data, lackeys);
expect(links).toBeArrayOfSize(3);
expect(links).toContain('~Henchman#');
expect(links).toContain('.Sharks');
expect(links).toContain('mafia/gangs');
links = helper.getAncestorLinks(data, henchman);
expect(links).toBeArrayOfSize(2);
expect(links).toContain('.Sharks~');
expect(links).toContain('mafia/gangs');
links = helper.getAncestorLinks(data, gang);
expect(links).toBeArrayOfSize(1);
expect(links).toContain('mafia/gangs.');
});
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks( doclet ) {
return helper.getAncestorLinks( data, doclet );
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}
function getAncestorLinks(doclet) {
return helper.getAncestorLinks(data, doclet);
}