diff options
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/model.excludes.js')
-rw-r--r-- | common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/model.excludes.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/model.excludes.js b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/model.excludes.js deleted file mode 100644 index ca5e902c..00000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/model.excludes.js +++ /dev/null @@ -1,21 +0,0 @@ -var config = require('./fixtures/config'), - request = require('supertest'); - -describe('Model', function() { - var app, movie, user; - before(function() { - app = config.app; - movie = config.movie; - user = config.user; - }); - describe('excludes', function() { - it('should exclude the excluded fields', function(done) { - request(app) - .get('/api/movies/' + config.movies[0]._id + '/') - .end(function(err, res) { - res.body.should.not.have.property('secret'); - done(); - }); - }); - }); -}); |