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
4ed1cec5
Commit
4ed1cec5
authored
Aug 20, 2018
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not redefine existing variable
parent
e1d86e21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/jio.storage/memorystorage.tests.js
test/jio.storage/memorystorage.tests.js
+4
-4
No files found.
test/jio.storage/memorystorage.tests.js
View file @
4ed1cec5
...
...
@@ -70,12 +70,12 @@
expect
(
2
);
stop
();
var
t
es
t
=
this
;
var
t
ha
t
=
this
;
this
.
jio
.
put
(
"
put1
"
,
{
"
title
"
:
"
myPut1
"
})
.
then
(
function
(
uuid
)
{
equal
(
uuid
,
"
put1
"
);
deepEqual
(
t
es
t
.
jio
.
__storage
.
_database
.
put1
,
{
deepEqual
(
t
ha
t
.
jio
.
__storage
.
_database
.
put1
,
{
attachments
:
{},
doc
:
"
{
\"
title
\"
:
\"
myPut1
\"
}
"
});
...
...
@@ -90,7 +90,7 @@
test
(
"
put when document already exists
"
,
function
()
{
var
id
=
"
put1
"
,
t
es
t
=
this
;
t
ha
t
=
this
;
this
.
jio
.
__storage
.
_database
[
id
]
=
{
"
foo
"
:
"
bar
"
,
"
attachments
"
:
{
"
foo
"
:
"
bar
"
},
...
...
@@ -102,7 +102,7 @@
this
.
jio
.
put
(
id
,
{
"
title
"
:
"
myPut2
"
})
.
then
(
function
(
uuid
)
{
equal
(
uuid
,
"
put1
"
);
deepEqual
(
t
es
t
.
jio
.
__storage
.
_database
.
put1
,
{
deepEqual
(
t
ha
t
.
jio
.
__storage
.
_database
.
put1
,
{
"
foo
"
:
"
bar
"
,
"
attachments
"
:
{
"
foo
"
:
"
bar
"
},
doc
:
"
{
\"
title
\"
:
\"
myPut2
\"
}
"
...
...
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