Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("should extract the tagDefinitions from the config", function() {
var tagDef1 = { name: 'tagDef1' };
var tagDef2 = { name: 'tagDef2' };
var config = new Config({
processing: {
tagDefinitions: [ tagDef1, tagDef2 ]
}
});
var tagDefinitions = tagDefinitionsProcessor.exports.tagDefinitions[1](config);
expect(tagDefinitions).toEqual([ tagDef1, tagDef2 ]);
});
beforeEach(function() {
config = new Config();
config.set('processing.tagDefinitions', [
{ name: 'ngdoc' },
{ name: 'description' },
{ name: 'param', canHaveName: true, canHaveType: true }
]);
});