Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Alexandra Rogova
jio_mebibou
Commits
10a9ba26
Commit
10a9ba26
authored
Aug 27, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one jio tests added
parent
65371df7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test/jio/tests.js
test/jio/tests.js
+5
-2
No files found.
test/jio/tests.js
View file @
10a9ba26
...
...
@@ -393,7 +393,7 @@
*/
test
(
'
Valid Responses & Callbacks
'
,
function
()
{
var
clock
,
jio
,
o
=
{};
expect
(
8
);
expect
(
9
);
clock
=
sinon
.
useFakeTimers
();
jio
=
new
JIO
({
...
...
@@ -407,7 +407,10 @@
// valid response.
o
.
message
=
"
Post Command: post(metadata).always(function (answer) {..})
"
+
"
+ valid response.
"
;
jio
.
post
({}).
always
(
function
(
answer
)
{
jio
.
post
({}).
done
(
function
()
{
o
.
called
=
'
done
'
;
}).
always
(
function
(
answer
)
{
ok
(
o
.
called
===
'
done
'
,
"
Done callback called first
"
);
deepEqual
(
answer
,
{
"
id
"
:
"
document id a
"
,
"
method
"
:
"
post
"
,
...
...
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