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
2676161c
Commit
2676161c
authored
Oct 30, 2017
by
samy
Browse files
FIX PR COMMENTS
parent
a22a3791
Pipeline
#4506
passed with stage
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
client/lib/archive.test.js
client/lib/archive.test.js
+2
-7
No files found.
client/lib/archive.test.js
View file @
2676161c
...
...
@@ -53,16 +53,11 @@ describe('client/lib/archive', () => {
expect
(
global
.
robotLib
.
archive
).
toBeDefined
();
});
it
(
'
should make init REST request
'
,
()
=>
{
const
transcript
=
'
transcript_test
'
;
const
result
=
global
.
archive
.
store
(
transcript
);
expect
(
result
).
toBe
(
true
);
expect
(
request
[
0
]).
not
.
toBeNull
();
});
it
(
'
should make correct REST call on store
'
,
()
=>
{
const
transcript
=
'
transcript_test
'
;
const
result
=
global
.
archive
.
store
(
transcript
);
global
.
archive
.
store
(
transcript
);
expect
(
result
).
toBe
(
true
);
expect
(
request
[
0
].
method
).
toBe
(
'
POST
'
);
expect
(
request
[
0
].
url
).
toBe
(
config
.
archive
);
expect
(
request
[
0
].
requestBody
).
toBe
(
JSON
.
stringify
(
transcript
));
...
...
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