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
Boris Kocherov
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
Hide 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
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
// sub_storage: {
// sub_storage: {
// "type": "dropbox",
// "type": "dropbox",
// "access_token" : "TOKEN",
// "access_token" : "TOKEN",
// "root" : "dropbox"
// "root" : "dropbox"
// }
// }
// }
// }
// }
// }
...
@@ -244,20 +244,20 @@
...
@@ -244,20 +244,20 @@
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
jio
.
put
(
"
test.txt
"
,
{});
return
jio
.
put
(
"
foo❤/
test.txt
"
,
{});
})
})
.
then
(
function
()
{
.
then
(
function
()
{
return
jio
.
putAttachment
(
return
jio
.
putAttachment
(
"
test.txt
"
,
"
foo❤/
test.txt
"
,
"
enclosure
"
,
"
enclosure
"
,
new
Blob
([
"
fooé
\n
bar
"
],
{
type
:
"
text/plain
"
})
new
Blob
([
"
fooé
\n
bar
测试四😈
"
],
{
type
:
"
text/plain
"
})
);
);
})
})
.
then
(
function
()
{
.
then
(
function
()
{
ok
(
true
,
"
Attachment stored
"
);
ok
(
true
,
"
Attachment stored
"
);
return
jio
.
getAttachment
(
"
test.txt
"
,
"
enclosure
"
);
return
jio
.
getAttachment
(
"
foo❤/
test.txt
"
,
"
enclosure
"
);
})
})
.
then
(
function
(
blob
)
{
.
then
(
function
(
blob
)
{
...
@@ -265,14 +265,14 @@
...
@@ -265,14 +265,14 @@
})
})
.
then
(
function
(
result
)
{
.
then
(
function
(
result
)
{
equal
(
result
.
target
.
result
,
"
fooé
\n
bar
"
,
"
Attachment correctly fetched
"
);
equal
(
result
.
target
.
result
,
"
fooé
\n
bar
测试四😈
"
,
"
Attachment correctly fetched
"
);
return
jio
.
get
(
"
test.txt
"
);
return
jio
.
get
(
"
foo❤/
test.txt
"
);
})
})
.
then
(
function
(
doc
)
{
.
then
(
function
(
doc
)
{
deepEqual
(
doc
,
{},
"
Document correctly fetched
"
);
deepEqual
(
doc
,
{},
"
Document correctly fetched
"
);
return
jio
.
allAttachments
(
"
test.txt
"
);
return
jio
.
allAttachments
(
"
foo❤/
test.txt
"
);
})
})
.
then
(
function
(
doc
)
{
.
then
(
function
(
doc
)
{
deepEqual
(
doc
,
{
deepEqual
(
doc
,
{
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
},
},
"
Attachment list correctly fetched
"
);
"
Attachment list correctly fetched
"
);
return
jio
.
removeAttachment
(
"
test.txt
"
,
"
enclosure
"
);
return
jio
.
removeAttachment
(
"
foo❤/
test.txt
"
,
"
enclosure
"
);
})
})
.
then
(
function
()
{
.
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