shout.js 726 B

1234567891011121314151617181920
  1. 'use strict';
  2. describe('shout plugin', function() {
  3. var env = require('jsdoc/env');
  4. var path = require('jsdoc/path');
  5. var docSet;
  6. var parser = jasmine.createParser();
  7. var pluginPath = 'plugins/shout';
  8. var pluginPathResolved = path.join(env.dirname, pluginPath);
  9. var plugin = require(pluginPathResolved);
  10. require('jsdoc/plugins').installPlugins([pluginPathResolved], parser);
  11. docSet = jasmine.getDocSetFromFile(pluginPath + '.js', parser);
  12. it('should make the description uppercase', function() {
  13. var doclet = docSet.getByLongname('module:plugins/shout.handlers.newDoclet');
  14. expect(doclet[0].description).toEqual('MAKE YOUR DESCRIPTIONS MORE SHOUTIER.');
  15. });
  16. });