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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
db331500
Commit
db331500
authored
Sep 06, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When no data is returned, No Content status is expected
parent
ebd6fe80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
test/jio.storage/localstorage.tests.js
test/jio.storage/localstorage.tests.js
+14
-14
test/jio/tests.js
test/jio/tests.js
+8
-8
No files found.
test/jio.storage/localstorage.tests.js
View file @
db331500
...
@@ -186,8 +186,8 @@
...
@@ -186,8 +186,8 @@
"
id
"
:
"
put1
"
,
"
id
"
:
"
put1
"
,
"
method
"
:
"
put
"
,
"
method
"
:
"
put
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Update the document
"
);
},
"
Update the document
"
);
}).
then
(
function
()
{
}).
then
(
function
()
{
...
@@ -731,8 +731,8 @@
...
@@ -731,8 +731,8 @@
"
id
"
:
"
inexistent
"
,
"
id
"
:
"
inexistent
"
,
"
method
"
:
"
check
"
,
"
method
"
:
"
check
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Check inexistent document
"
);
},
"
Check inexistent document
"
);
}).
then
(
function
()
{
}).
then
(
function
()
{
...
@@ -750,32 +750,32 @@
...
@@ -750,32 +750,32 @@
"
id
"
:
"
war
"
,
"
id
"
:
"
war
"
,
"
method
"
:
"
repair
"
,
"
method
"
:
"
repair
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Repair a document with one missing attachment
"
);
},
"
Repair a document with one missing attachment
"
);
deepEqual
(
answers
[
1
],
{
deepEqual
(
answers
[
1
],
{
"
id
"
:
"
meta
"
,
"
id
"
:
"
meta
"
,
"
method
"
:
"
repair
"
,
"
method
"
:
"
repair
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Repair document with wrong metadata
"
);
},
"
Repair document with wrong metadata
"
);
deepEqual
(
answers
[
2
],
{
deepEqual
(
answers
[
2
],
{
"
id
"
:
"
cor
"
,
"
id
"
:
"
cor
"
,
"
method
"
:
"
repair
"
,
"
method
"
:
"
repair
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Repair corrupted document
"
);
},
"
Repair corrupted document
"
);
deepEqual
(
answers
[
3
],
{
deepEqual
(
answers
[
3
],
{
"
id
"
:
"
inexistent
"
,
"
id
"
:
"
inexistent
"
,
"
method
"
:
"
repair
"
,
"
method
"
:
"
repair
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Repair inexistent document
"
);
},
"
Repair inexistent document
"
);
}).
then
(
function
()
{
}).
then
(
function
()
{
...
@@ -856,8 +856,8 @@
...
@@ -856,8 +856,8 @@
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
method
"
:
"
repair
"
,
"
method
"
:
"
repair
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Repair all the database
"
);
},
"
Repair all the database
"
);
}).
then
(
function
()
{
}).
then
(
function
()
{
...
...
test/jio/tests.js
View file @
db331500
...
@@ -847,8 +847,8 @@
...
@@ -847,8 +847,8 @@
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
put
"
,
"
method
"
:
"
put
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
First put respond
"
);
},
"
First put respond
"
);
});
});
...
@@ -862,8 +862,8 @@
...
@@ -862,8 +862,8 @@
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
put
"
,
"
method
"
:
"
put
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Second put respond
"
);
},
"
Second put respond
"
);
});
});
...
@@ -895,8 +895,8 @@
...
@@ -895,8 +895,8 @@
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
put
"
,
"
method
"
:
"
put
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
First put respond
"
);
},
"
First put respond
"
);
});
});
...
@@ -910,8 +910,8 @@
...
@@ -910,8 +910,8 @@
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
put
"
,
"
method
"
:
"
put
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
20
0
,
"
status
"
:
20
4
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
No Content
"
},
"
Second put respond
"
);
},
"
Second put respond
"
);
});
});
...
...
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