Skip to content

Commit ee00873

Browse files
committed
more todos and also renamed templates
1 parent 7e93b0e commit ee00873

File tree

10 files changed

+13
-6
lines changed

10 files changed

+13
-6
lines changed

config/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ if(process.env.NODE_ENV === 'development'){
99
}else{
1010
module.exports = development;
1111
}
12+
// ToDo: Test for production and development senarios

gulpfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ gulp.task('service', function(){
7373
var nameLowerCase = _.lowerCase(name);
7474

7575
// Create the Route
76-
fs.readFile('./template/route.js', function(err, data){
76+
fs.readFile('./template/route.tmpl', function(err, data){
7777
if (err){
7878
throw err;
7979
}
@@ -89,7 +89,7 @@ gulp.task('service', function(){
8989
});
9090

9191
// Create the Route Unit Test
92-
fs.readFile('./template/route_test.js', function(err, data){
92+
fs.readFile('./template/route_test.tmpl', function(err, data){
9393
if (err){
9494
throw err;
9595
}
@@ -105,7 +105,7 @@ gulp.task('service', function(){
105105
});
106106

107107
// Create the Model
108-
fs.readFile('./template/model.js', function(err, data){
108+
fs.readFile('./template/model.tmpl', function(err, data){
109109
if (err){
110110
throw err;
111111
}
@@ -121,7 +121,7 @@ gulp.task('service', function(){
121121
});
122122

123123
// Create the Model Unit Test
124-
fs.readFile('./template/model_test.js', function(err, data){
124+
fs.readFile('./template/model_test.tmpl', function(err, data){
125125
if (err){
126126
throw err;
127127
}
@@ -137,7 +137,7 @@ gulp.task('service', function(){
137137
});
138138

139139
// Create the controller
140-
fs.readFile('./template/controller.js', function(err, data){
140+
fs.readFile('./template/controller.tmpl', function(err, data){
141141
if (err){
142142
throw err;
143143
}
@@ -153,7 +153,7 @@ gulp.task('service', function(){
153153
});
154154

155155
// Create the controller Unit test
156-
fs.readFile('./template/controller_test.js', function(err, data){
156+
fs.readFile('./template/controller_test.tmpl', function(err, data){
157157
if (err){
158158
throw err;
159159
}

routes/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,10 @@ module.exports = router;
290290

291291
// ToDo: Test API versioning
292292
// ToDo: Test rate limiting
293+
// ToDo: Test complete route Loader test
294+
// ToDo: Test _sanitizeRequestUrl middleware function
295+
// ToDo: Test _allRequestData middleware function for default value scenario
296+
// ToDo: Test _enforceUserIdAndAppId middle function for when req.body is an array
297+
// ToDo: Make Log requests testable and write unit tests for it
293298
// ToDo: Develop the route loader into a separate node module to be publish on npm
294299
// ToDo: Develop all services onto separate node module to be publish on npm

services/logger/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ module.exports.errorHandler = function(err, req, res, next){ // jshint ignore:li
3333
res.serverError(err);
3434
}
3535
};
36+
// ToDo: Test Error Handler
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)