diff options
author | 2017-09-28 19:16:20 +0800 | |
---|---|---|
committer | 2017-09-28 19:16:20 +0800 | |
commit | b2a98df1fcee69ccfbab37774a9bc3152529242f (patch) | |
tree | c50c298e0d6ee20658b386da54ae01623f5bc95a /common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures | |
parent | 9d0d1b611f53e3f51f8bf158bfad6eb76e84d945 (diff) |
Remove the unused thirdpary code from esr-gui.
Change-Id: I9f7d7234df60c7c33abef2efff051ae433e73c8c
Issue-ID: AAI-402
Signed-off-by: lizi <li.zi30@zte.com.cn>
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures')
4 files changed, 0 insertions, 140 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/config.js b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/config.js deleted file mode 100644 index bdb1208..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/config.js +++ /dev/null @@ -1,32 +0,0 @@ -var express = require('express'), - fixtures = require('pow-mongodb-fixtures'), - app = require('../../examples/movies/'), - data = require('./data'), - done = false, - mongoose, - callback; - - -exports.app = app; -exports.movie = app.movie; -exports.user = app.user; -exports.review = app.review -mongoose = app.mongoose; -fixtures = fixtures.connect(mongoose.connection.name); - -fixtures.load(data, function(err) { - exports.users = data.users; - exports.movies = data.movies; - exports.reviews = data.reviews; - done = true; - if (callback) return callback(); -}); - -exports.movies = data.movies; -exports.users = data.users; -exports.reviews = data.reviews; - -exports.ready = function(cb) { - callback = cb; - if (done) callback(); -}; diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js deleted file mode 100644 index 7beafd9..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/data.js +++ /dev/null @@ -1,101 +0,0 @@ -var ObjectId = require('mongodb').ObjectID; - -exports.users = [ - { - _id: new ObjectId(), - username: "test", - pass_hash: 12374238719845134515, - }, - { - _id: new ObjectId(), - username: "test2", - pass_hash: 1237987381263189273123, - } -]; - -exports.movies = [ - { - _id: new ObjectId(), - title: "Title1", - year: 2012, - meta: { - productionco: "idk", - director: exports.users[1]._id, - }, - creator: exports.users[0]._id, - secret: "A SECRET STRING", - }, - { - _id: new ObjectId(), - title: "Title2", - year: 2011 - }, - { - _id: new ObjectId(), - title: "Title3", - year: 2013 - }, - { - _id: new ObjectId(), - title: "Title4", - year: 2013 - }, - { - _id: new ObjectId(), - title: "Title5", - year: 2013 - }, - { - _id: new ObjectId(), - title: "Title6", - year: 2010 - }, - { - _id: new ObjectId(), - title: "Title7", - year: 2011 - }, - { - _id: new ObjectId(), - title: "Title8", - year: 2012 - }, - { - _id: new ObjectId(), - title: "Title9", - year: 2010 - }, - { - _id: new ObjectId(), - title: "Title10", - year: 2011 - }, - { - _id: new ObjectId(), - title: "Title11", - year: 2012 - }, - { - _id: new ObjectId(), - title: "Title12", - year: 2010 - }, - { - _id: new ObjectId(), - title: "Title13", - year: 2011 - }, - { - _id: new ObjectId(), - title: "Title14", - year: 2009 - } -]; - -exports.reviews = [ - { - _id: new ObjectId(), - body: "This is a movie review!", - length: 127 - } -]; diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/index.jade b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/index.jade deleted file mode 100644 index a17ae31..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/index.jade +++ /dev/null @@ -1,4 +0,0 @@ -h1 index - -each item, i in locals - li #{item.title}: #{i} diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/show.jade b/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/show.jade deleted file mode 100644 index 7cb6b3c..0000000 --- a/common/src/main/webapp/usageguide/appserver/node_modules/node-restful/test/fixtures/movies/show.jade +++ /dev/null @@ -1,3 +0,0 @@ -h1 show - -#{title} |