Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
jio
Commits
b681a950
Commit
b681a950
authored
Sep 09, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure unicode is correctly handled by the scenario
parent
5ccc2bd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
examples/scenario.js
examples/scenario.js
+9
-9
No files found.
examples/scenario.js
View file @
b681a950
...
...
@@ -244,20 +244,20 @@
})
.
then
(
function
()
{
return
jio
.
put
(
"
test.txt
"
,
{});
return
jio
.
put
(
"
foo❤/
test.txt
"
,
{});
})
.
then
(
function
()
{
return
jio
.
putAttachment
(
"
test.txt
"
,
"
foo❤/
test.txt
"
,
"
enclosure
"
,
new
Blob
([
"
fooé
\n
bar
"
],
{
type
:
"
text/plain
"
})
new
Blob
([
"
fooé
\n
bar
测试四😈
"
],
{
type
:
"
text/plain
"
})
);
})
.
then
(
function
()
{
ok
(
true
,
"
Attachment stored
"
);
return
jio
.
getAttachment
(
"
test.txt
"
,
"
enclosure
"
);
return
jio
.
getAttachment
(
"
foo❤/
test.txt
"
,
"
enclosure
"
);
})
.
then
(
function
(
blob
)
{
...
...
@@ -265,14 +265,14 @@
})
.
then
(
function
(
result
)
{
equal
(
result
.
target
.
result
,
"
fooé
\n
bar
"
,
"
Attachment correctly fetched
"
);
return
jio
.
get
(
"
test.txt
"
);
equal
(
result
.
target
.
result
,
"
fooé
\n
bar
测试四😈
"
,
"
Attachment correctly fetched
"
);
return
jio
.
get
(
"
foo❤/
test.txt
"
);
})
.
then
(
function
(
doc
)
{
deepEqual
(
doc
,
{},
"
Document correctly fetched
"
);
return
jio
.
allAttachments
(
"
test.txt
"
);
return
jio
.
allAttachments
(
"
foo❤/
test.txt
"
);
})
.
then
(
function
(
doc
)
{
deepEqual
(
doc
,
{
...
...
@@ -280,7 +280,7 @@
},
"
Attachment list correctly fetched
"
);
return
jio
.
removeAttachment
(
"
test.txt
"
,
"
enclosure
"
);
return
jio
.
removeAttachment
(
"
foo❤/
test.txt
"
,
"
enclosure
"
);
})
.
then
(
function
()
{
...
...
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