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
ba5e535b
Commit
ba5e535b
authored
Oct 18, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
davstorage.tests.js AMD compatibility added
parent
2584d101
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
test/jio.storage/davstorage.tests.js
test/jio.storage/davstorage.tests.js
+17
-4
No files found.
test/jio.storage/davstorage.tests.js
View file @
ba5e535b
/*jslint indent: 2, maxlen: 80, nomen: true */
/*jslint indent: 2, maxlen: 80, nomen: true */
/*global module, test, stop, start, expect, ok, deepEqual, location, sinon,
/*global module, test, stop, start, expect, ok, deepEqual, location, sinon,
davstorage_spec, RSVP, jIO, test_util, dav_storage, btoa */
davstorage_spec, RSVP, jIO, test_util, dav_storage, btoa
, define
*/
(
function
()
{
// define([module_name], [dependencies], module);
(
function
(
dependencies
,
module
)
{
"
use strict
"
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
return
define
(
dependencies
,
module
);
}
module
(
test_util
,
RSVP
,
jIO
,
dav_storage
);
}([
'
test_util
'
,
'
rsvp
'
,
'
jio
'
,
'
davstorage
'
,
'
qunit
'
],
function
(
util
,
RSVP
,
jIO
,
dav_storage
)
{
"
use strict
"
;
"
use strict
"
;
var
spec
,
use_fake_server
=
true
;
var
spec
,
use_fake_server
=
true
;
...
@@ -160,7 +173,7 @@
...
@@ -160,7 +173,7 @@
"
status
"
:
201
,
"
status
"
:
201
,
"
statusText
"
:
"
Created
"
"
statusText
"
:
"
Created
"
},
"
Post a new document
"
);
},
"
Post a new document
"
);
ok
(
test_
util
.
isUuid
(
uuid
),
"
New document id should look like
"
+
ok
(
util
.
isUuid
(
uuid
),
"
New document id should look like
"
+
"
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx :
"
+
uuid
);
"
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx :
"
+
uuid
);
shared
.
created_document_id
=
uuid
;
shared
.
created_document_id
=
uuid
;
}
}
...
@@ -1065,4 +1078,4 @@
...
@@ -1065,4 +1078,4 @@
});
});
}
(
));
}));
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