This commit is contained in:
2018-09-21 23:49:05 +08:00
parent d1436af18d
commit 9260e8e0ae
13 changed files with 71 additions and 71 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ describe('Test RESTful API', function() {
});
it('Test RESTful API: get /api/id - must return value', function (done) {
request('http://127.0.0.1:18183/api/system.adapter.template-rest.0.alive', function (error, response, body) {
request('http://127.0.0.1:18183/api/system.adapter.rest.0.alive', function (error, response, body) {
console.log('get /api => ' + body);
expect(error).to.be.not.ok;
var data = JSON.parse(body);
@@ -59,7 +59,7 @@ describe('Test RESTful API', function() {
});
it('Test RESTful API: get /api/plain/id - must return value', function (done) {
request('http://127.0.0.1:18183/api/plain/system.adapter.template-rest.0.alive', function (error, response, body) {
request('http://127.0.0.1:18183/api/plain/system.adapter.rest.0.alive', function (error, response, body) {
console.log('get /api => ' + body);
expect(error).to.be.not.ok;
expect(body).to.be.equal('Value: true');