Permalink
Browse files

Tweaked the MODULE_JS and TESTMODULE_JS templates a little bit.

  • Loading branch information...
1 parent 7980b00 commit 6c2fa12d8a11a5492b8afd134dcd4f399c754f97 @mr-rock mr-rock committed Mar 11, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 .alice/javascript
View
@@ -2,36 +2,36 @@ INDEX_JS = "module.exports = require('./$(LIBRARIES_DIRECTORY)/$(LIB_NAME)');"
MODULE_JS = "module.exports = {\
\n\t//var example = 0;\
-\n\n\tmethod1: function(){\
+\n\n\tmethod1: function() {\
\n\t\t// ... your code goes in here ...\
\n\t},\
-\n\tmethod2: function(){\
+\n\tmethod2: function() {\
\n\t\t// ... your code goes in here ...\
\n\t}\
\n};"
ifeq "$(GROUP)" ""
-TESTMODULE_JS = "describe('$(NAME)', function(){\
+TESTMODULE_JS = "describe('$(NAME)', function() {\
\n\tvar $(NAME_CAMELIZED) = require('../../$(LIBRARIES_DIRECTORY)/$(NAME_CAMELIZED)');"
else
-TESTMODULE_JS = "describe('$(GROUP) > $(NAME)', function(){\
+TESTMODULE_JS = "describe('$(GROUP) > $(NAME)', function() {\
\n\tvar $(NAME_CAMELIZED) = require('../../../$(LIBRARIES_DIRECTORY)/$(GROUP_CAMELIZED)/$(NAME_CAMELIZED)');"
endif
-TESTMODULE_JS += "\n\n\tdescribe('\#example', function(){\
-\n\t\tit('should not exist', function(done){\
+TESTMODULE_JS += "\n\n\tdescribe('\#example', function() {\
+\n\t\tit('should not exist', function(done) {\
\n\t\t\t$(NAME_CAMELIZED).should.not.have.property('example');\
\n\t\t\tdone();\
\n\t\t});\
\n\t});\
-\n\n\tdescribe('\#method1()', function(){\
-\n\t\tit('should exist.', function(done){\
+\n\n\tdescribe('\#method1()', function() {\
+\n\t\tit('should exist.', function(done) {\
\n\t\t\t$(NAME_CAMELIZED).should.have.property('method1');\
\n\t\t\tdone();\
\n\t\t});\
\n\t});\
-\n\n\tdescribe('\#method2()', function(){\
-\n\t\tit('should exist.', function(done){\
+\n\n\tdescribe('\#method2()', function() {\
+\n\t\tit('should exist.', function(done) {\
\n\t\t\t$(NAME_CAMELIZED).should.have.property('method2');\
\n\t\t\tdone();\
\n\t\t});\

0 comments on commit 6c2fa12

Please sign in to comment.