Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Hardik Juneja
jio-main
Commits
9e6b12b5
Commit
9e6b12b5
authored
Oct 28, 2016
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
f083a2c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
test/jio.storage/mappingstorage.tests.js
test/jio.storage/mappingstorage.tests.js
+9
-9
No files found.
test/jio.storage/mappingstorage.tests.js
View file @
9e6b12b5
...
...
@@ -35,7 +35,7 @@
ok
(
jio
.
__storage
.
_sub_storage
instanceof
jio
.
constructor
);
equal
(
jio
.
__storage
.
_sub_storage
.
__type
,
"
mappingstorage2713
"
);
deepEqual
(
jio
.
__storage
.
_mapping_dict
,
{});
deepEqual
(
jio
.
__storage
.
_
mapping_dict_attachmen
t
,
{});
deepEqual
(
jio
.
__storage
.
_
attachment_mapping_dic
t
,
{});
deepEqual
(
jio
.
__storage
.
_query
,
{});
equal
(
jio
.
__storage
.
_map_all_property
,
true
);
});
...
...
@@ -49,14 +49,14 @@
mapping_dict
:
{
"
bar
"
:
{
"
equal
"
:
"
foo
"
}},
map_all_property
:
false
,
query
:
{
"
query
"
:
'
foo: "bar"
'
},
mapping_dict_attachmen
t
:
{
"
foo
"
:
{
"
get
"
:
"
bar
"
}}
attachment_mapping_dic
t
:
{
"
foo
"
:
{
"
get
"
:
"
bar
"
}}
});
deepEqual
(
jio
.
__storage
.
_mapping_dict
,
{
"
bar
"
:
{
"
equal
"
:
"
foo
"
}});
equal
(
jio
.
__storage
.
_query
.
query
.
key
,
"
foo
"
);
equal
(
jio
.
__storage
.
_query
.
query
.
value
,
"
bar
"
);
equal
(
jio
.
__storage
.
_query
.
query
.
type
,
"
simple
"
);
deepEqual
(
jio
.
__storage
.
_
mapping_dict_attachmen
t
,
{
"
foo
"
:
{
"
get
"
:
"
bar
"
}});
deepEqual
(
jio
.
__storage
.
_
attachment_mapping_dic
t
,
{
"
foo
"
:
{
"
get
"
:
"
bar
"
}});
equal
(
jio
.
__storage
.
_map_all_property
,
false
);
});
...
...
@@ -539,7 +539,7 @@
sub_storage
:
{
type
:
"
mappingstorage2713
"
},
mapping_dict_attachmen
t
:
{
"
2713
"
:
{
"
put
"
:
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
put
"
:
{
"
uri_template
"
:
"
www.2713.foo/{id}
"
}}}
}),
blob
=
new
Blob
([
""
]);
...
...
@@ -570,7 +570,7 @@
type
:
"
mappingstorage2713
"
},
mapping_dict
:
{
"
id
"
:
{
"
equal
"
:
"
otherId
"
}},
mapping_dict_attachmen
t
:
{
"
2713
"
:
{
"
put
"
:
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
put
"
:
{
"
uri_template
"
:
"
www.2713.foo/{id}
"
}}}
}),
blob
=
new
Blob
([
""
]);
...
...
@@ -641,7 +641,7 @@
sub_storage
:
{
type
:
"
mappingstorage2713
"
},
mapping_dict_attachmen
t
:
{
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
get
"
:
{
"
uri_template
"
:
"
www.2713/{id}/ok.com
"
}}
}
}),
...
...
@@ -671,7 +671,7 @@
type
:
"
mappingstorage2713
"
},
mapping_dict
:
{
"
id
"
:
{
"
equal
"
:
"
otherId
"
}},
mapping_dict_attachmen
t
:
{
"
2713
"
:
{
"
get
"
:
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
get
"
:
{
"
uri_template
"
:
"
www.2713.foo/{id}
"
}}}
}),
blob
=
new
Blob
([
""
]);
...
...
@@ -743,7 +743,7 @@
sub_storage
:
{
type
:
"
mappingstorage2713
"
},
mapping_dict_attachmen
t
:
{
"
2713
"
:
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
remove
"
:
{
"
uri_template
"
:
"
www.2713/{id}.bar
"
}}}
});
...
...
@@ -773,7 +773,7 @@
type
:
"
mappingstorage2713
"
},
mapping_dict
:
{
"
id
"
:
{
"
equal
"
:
"
otherId
"
}},
mapping_dict_attachmen
t
:
{
"
2713
"
:
{
"
remove
"
:
attachment_mapping_dic
t
:
{
"
2713
"
:
{
"
remove
"
:
{
"
uri_template
"
:
"
www.2713.foo/{id}
"
}}}
});
...
...
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