Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Yaxel Perez
jio
Commits
dd9ca2df
Commit
dd9ca2df
authored
6 years ago
by
Yaxel Perez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
basic testing
parent
20cfa389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
src/jio.storage/nocapacitystorage.tests.js
src/jio.storage/nocapacitystorage.tests.js
+34
-0
No files found.
src/jio.storage/nocapacitystorage.tests.js
View file @
dd9ca2df
// TODO: Add license probably
(
function
(
jIO
,
QUnit
,
Blob
)
{
"
use strict
"
;
function
TestStorage
()
{
return
this
;
}
jIO
.
addStorage
(
'
teststorage
'
,
TestStorage
);
module
(
"
NoCapacityStorage
"
);
QUnit
.
test
(
'
test constructor
'
,
function
()
{
var
jio
=
jIO
.
createJIO
({
type
=
"
nocapacity
"
,
schema
:
{
'
date
'
:
{
'
type
'
:
'
string
'
,
format
:
'
date-time
'
}},
sub_storage
:
{
type
:
'
teststorage
'
}
});
});
QUnit
.
test
(
'
test hasCapacity
'
,
function
()
{
var
jio
=
jIO
.
createJIO
({
type
=
"
nocapacity
"
,
schema
:
{
'
date
'
:
{
'
type
'
:
'
string
'
,
format
:
'
date-time
'
}},
sub_storage
:
{
type
:
'
teststorage
'
}
});
QUnit
.
equal
(
jio
.
hasCapacity
(
'
query
'
),
false
);
});
})(
jIO
,
QUnit
,
Blob
));
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