Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("does not apply any of missingOpts if the tutorial was found", () => {
const link = helper.toTutorial('test', '', {
tag: 'span',
classname: 'missing',
prefix: 'TODO-'
});
expect(link).toBe(`<a href="${helper.tutorialToUrl('test')}">Test tutorial</a>`);
});
});
it("creates links for tutorials where the name is a reserved JS keyword", () => {
const url = helper.tutorialToUrl('constructor');
expect(url).toBe('tutorial-constructor.html');
});
node.children.forEach(function(child) {
generateTutorial(
child.title,
child,
helper.tutorialToUrl(child.name)
)
saveChildren(child)
})
}
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
getTutorialChildren(tutorials).forEach(function(child) {
const title = name.stripNamespace(child.title);
const tutorialData = {
pageCategory: CATEGORIES.TUTORIALS,
pageTitle: title,
pageTitlePrefix: this.pageTitlePrefix,
header: title,
tutorialContent: child.content,
tutorialChildren: child.children
};
const url = helper.tutorialToUrl(child.name);
this.generate('tutorial', tutorialData, url);
}, this);
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
node.children.forEach(function (child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}
node.children.forEach(function(child) {
generateTutorial('Tutorial: ' + child.title, child, helper.tutorialToUrl(child.name));
saveChildren(child);
});
}