Permalink
Browse files

reflecting the change in the arguments passed in

  • Loading branch information...
1 parent 1d0484c commit 84413c0cd783bcfd792424a86e4ef9321673cd68 @liangzan committed May 20, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/parser.js
  2. +2 −2 test/parser.test.js
View
2 lib/parser.js
@@ -47,7 +47,7 @@ parser.parseConcurrencyOpts = function(cmdOptions) {
/*
* parses the template options
*
- * @param {obj} command line options
+ * @param {string} template options
* @return {obj} object with key:val as templateName:path
*/
parser.parseTemplateOpts = function(templateOpt) {
View
4 test/parser.test.js
@@ -41,8 +41,8 @@ describe('parser', function() {
describe('for template cli options', function() {
it('should return the options as an object', function(done) {
- var cmdOptions = {template: 'run=/path/to/run.mustache,log_run=another/path/to/alt.mustache'};
- var parsedOpt = parser.parseTemplateOpts(cmdOptions);
+ var templateOpt = 'run=/path/to/run.mustache,log_run=another/path/to/alt.mustache';
+ var parsedOpt = parser.parseTemplateOpts(templateOpt);
parsedOpt.should.eql({
run: '/path/to/run.mustache',
log_run: 'another/path/to/alt.mustache'

0 comments on commit 84413c0

Please sign in to comment.