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
b2948e5d
Commit
b2948e5d
authored
May 30, 2018
by
Bryan Kaperick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added additional testing of the revisions and removed extraneous tests.
parent
5762d991
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
402 deletions
+49
-402
src/jio.storage/bryanstorage.js
src/jio.storage/bryanstorage.js
+5
-2
test/jio.storage/bryanstorage.tests.js
test/jio.storage/bryanstorage.tests.js
+44
-400
No files found.
src/jio.storage/bryanstorage.js
View file @
b2948e5d
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
sub_storage
:
spec
.
sub_storage
sub_storage
:
spec
.
sub_storage
}
}
});
});
}
}
BryanStorage
.
prototype
.
get
=
function
(
id_in
)
{
BryanStorage
.
prototype
.
get
=
function
(
id_in
)
{
...
@@ -28,7 +27,7 @@
...
@@ -28,7 +27,7 @@
sort_on
:
[[
'
_revision
'
,
'
descending
'
]]
sort_on
:
[[
'
_revision
'
,
'
descending
'
]]
//include_docs: true
//include_docs: true
};
};
return
this
.
_sub_storage
.
allDocs
(
options
)
return
this
.
allDocs
(
options
)
// Return query results if there are any, else throw error
// Return query results if there are any, else throw error
.
push
(
function
(
query_results
)
{
.
push
(
function
(
query_results
)
{
var
docs
=
query_results
.
data
.
rows
;
var
docs
=
query_results
.
data
.
rows
;
...
@@ -71,6 +70,10 @@
...
@@ -71,6 +70,10 @@
);
);
};
};
BryanStorage
.
prototype
.
allDocs
=
function
()
{
return
this
.
_sub_storage
.
allDocs
.
apply
(
this
.
_sub_storage
,
arguments
);
};
BryanStorage
.
prototype
.
allAttachments
=
function
()
{
BryanStorage
.
prototype
.
allAttachments
=
function
()
{
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
arguments
);
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
arguments
);
};
};
...
...
test/jio.storage/bryanstorage.tests.js
View file @
b2948e5d
This diff is collapsed.
Click to expand it.
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