Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
6d8c9ad5
Commit
6d8c9ad5
authored
8 years ago
by
jaredhilton
Browse files
Options
Downloads
Patches
Plain Diff
Remove build property from default info API; update tests to reflect removal
parent
e5464f35
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/rocketchat-api/server/default/info.js
+1
-2
1 addition, 2 deletions
packages/rocketchat-api/server/default/info.js
tests/end-to-end/api/00-miscellaneous.js
+0
-8
0 additions, 8 deletions
tests/end-to-end/api/00-miscellaneous.js
with
1 addition
and
10 deletions
packages/rocketchat-api/server/default/info.js
+
1
−
2
View file @
6d8c9ad5
...
@@ -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
});
});
}
}
});
});
This diff is collapsed.
Click to expand it.
tests/end-to-end/api/00-miscellaneous.js
+
0
−
8
View file @
6d8c9ad5
...
@@ -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
);
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment