Skip to content
Snippets Groups Projects
Commit 6d8c9ad5 authored by jaredhilton's avatar jaredhilton
Browse files

Remove build property from default info API; update tests to reflect removal

parent e5464f35
No related merge requests found
...@@ -9,8 +9,7 @@ RocketChat.API.default.addRoute('info', { authRequired: false }, { ...@@ -9,8 +9,7 @@ RocketChat.API.default.addRoute('info', { authRequired: false }, {
} }
return RocketChat.API.v1.success({ return RocketChat.API.v1.success({
version: RocketChat.Info.version, version: RocketChat.Info.version
build: RocketChat.Info.build
}); });
} }
}); });
...@@ -29,14 +29,6 @@ describe('miscellaneous', function() { ...@@ -29,14 +29,6 @@ describe('miscellaneous', function() {
.expect(200) .expect(200)
.expect((res) => { .expect((res) => {
expect(res.body).to.have.property('version'); expect(res.body).to.have.property('version');
expect(res.body).to.have.deep.property('build.date');
expect(res.body).to.have.deep.property('build.nodeVersion');
expect(res.body).to.have.deep.property('build.arch');
expect(res.body).to.have.deep.property('build.platform');
expect(res.body).to.have.deep.property('build.osRelease');
expect(res.body).to.have.deep.property('build.totalMemory');
expect(res.body).to.have.deep.property('build.freeMemory');
expect(res.body).to.have.deep.property('build.cpus');
}) })
.end(done); .end(done);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment