diff --git a/test/routes/cms-auth-spec.js b/test/routes/cms-auth-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-passport-spec.js b/test/routes/cms-passport-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-proxy-spec.js b/test/routes/cms-proxy-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-rest-spec.js b/test/routes/cms-rest-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-server-spec.js b/test/routes/cms-server-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-sockets-spec.js b/test/routes/cms-sockets-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/cms-upload-spec.js b/test/routes/cms-upload-spec.js new file mode 100644 index 0000000..e69de29 diff --git a/test/routes/rest-spec.coffee b/test/routes/rest-spec.coffee deleted file mode 100644 index 616e3b4..0000000 --- a/test/routes/rest-spec.coffee +++ /dev/null @@ -1,32 +0,0 @@ -#Routes Spec -request = require('supertest') -path = require('path') -expect = require('chai').expect - -#//Dynamic rest server -rest = require(path.resolve(__dirname, '../../routes/rest.js')).rest - -console.log(__dirname) -app = new rest({port: 9191}); - -endpoint = 'http://localhost:8181/api/v2' -postData = - "username": "nodetest"+Date.now(), - "email": "nodetest@email.com", - "password": "test", - "active": true, - "groups": ["member"], - "_activation": "", - "_key": "", - "created": new Date(), - "modified": new Date(), - "metadata": {"avatar": "", "name": "Node Test User"} - -describe 'Testing: API Server', () -> - - describe "GET /users", -> - it "respond with json", (done) -> - request(app) - .get '/api/v2/angular-cms/users' - .expect "Content-Type", /json/ - .expect 200, done diff --git a/test/routes/rest-spec.js b/test/routes/rest-spec.js index 5b2eba0..225ed7d 100644 --- a/test/routes/rest-spec.js +++ b/test/routes/rest-spec.js @@ -1,5 +1,3 @@ - - var request = require('supertest'); var path = require('path'); var fs = require('fs');