Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
hublot
Commits
a22a3791
Commit
a22a3791
authored
Oct 30, 2017
by
samy
Browse files
fix PR comments
parent
04b20ff7
Pipeline
#4504
passed with stage
in 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
client/lib/live-reco.test.js
client/lib/live-reco.test.js
+2
-8
package.json
package.json
+1
-1
No files found.
client/lib/live-reco.test.js
View file @
a22a3791
...
...
@@ -74,18 +74,12 @@ describe('client/lib/reco', () => {
expect
(
global
.
robotLib
.
reco
).
toBeDefined
();
});
test
(
'
should make init
'
,
()
=>
{
const
confId
=
'
testConf
'
;
const
reco
=
global
.
robotLib
.
reco
(
config
);
expect
(
reco
.
start
(
confId
)).
toBe
(
true
);
expect
(
request
[
0
]).
not
.
toBeNull
();
});
test
(
'
should make a correct REST call on start
'
,
()
=>
{
const
confId
=
'
testConf
'
;
const
urlExpected
=
'
http://localhost:8080/stream?action=START&id=
'
+
confId
;
const
reco
=
global
.
robotLib
.
reco
(
config
);
reco
.
start
(
confId
);
const
result
=
reco
.
start
(
confId
);
expect
(
result
).
toBe
(
true
);
expect
(
request
[
0
].
method
).
toBe
(
'
GET
'
);
expect
(
request
[
0
].
url
).
toBe
(
urlExpected
);
});
...
...
package.json
View file @
a22a3791
...
...
@@ -19,7 +19,7 @@
"devDependencies"
:
{
"
jest
"
:
"
20.0.0
"
,
"
xo
"
:
"
0.18.2
"
,
"sinon"
:
"^4.0.2"
,
"
sinon
"
:
"
^4.0.2
"
},
"author"
:
"Linagora Folks"
,
"license"
:
"
AGPL-3.0
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment