From 1cc0907aa435579a82e0cb1f966d892537d98fca Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Wed, 8 Aug 2012 20:53:56 +0100 Subject: [PATCH] Adding verboseOutput test. --- plugins/test/specs/verboseOutput.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 plugins/test/specs/verboseOutput.js diff --git a/plugins/test/specs/verboseOutput.js b/plugins/test/specs/verboseOutput.js new file mode 100644 index 000000000..04a4a4d97 --- /dev/null +++ b/plugins/test/specs/verboseOutput.js @@ -0,0 +1,17 @@ +/** + * @author Rob Taylor [manix84@gmail.com] + */ + +describe("verbose output plugin", function () { + var parser = new (require("jsdoc/src/parser")).Parser(), + plugin = require('plugins/verboseOutput'), + docSet; + + installPlugins(['plugins/verboseOutput'], parser); + docSet = jasmine.getDocSetFromFile("plugins/verboseOutput.js", parser); + + it("should log file names to console", function() { + var fileBegin = docSet.getByLongname("module:plugins/verboseOutput.handlers.fileBegin"); + expect(fileBegin[0].description).toEqual("Logging the file name to the console."); + }); +});