1234567891011121314151617181920 |
- 'use strict';
- describe('shout plugin', function() {
- var env = require('jsdoc/env');
- var path = require('jsdoc/path');
- var docSet;
- var parser = jasmine.createParser();
- var pluginPath = 'plugins/shout';
- var pluginPathResolved = path.join(env.dirname, pluginPath);
- var plugin = require(pluginPathResolved);
- require('jsdoc/plugins').installPlugins([pluginPathResolved], parser);
- docSet = jasmine.getDocSetFromFile(pluginPath + '.js', parser);
- it('should make the description uppercase', function() {
- var doclet = docSet.getByLongname('module:plugins/shout.handlers.newDoclet');
- expect(doclet[0].description).toEqual('MAKE YOUR DESCRIPTIONS MORE SHOUTIER.');
- });
- });
|