Commit f5c25e0c authored by Tristan Cavelier's avatar Tristan Cavelier

add schema to query storage + local storage

parent 99577d27
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
return define(dependencies, module); return define(dependencies, module);
} }
module(test_util, RSVP, jIO, local_storage); module(test_util, RSVP, jIO);
}([ }([
'test_util', 'test_util',
'rsvp', 'rsvp',
...@@ -16,15 +16,19 @@ ...@@ -16,15 +16,19 @@
'localstorage', 'localstorage',
'qunit', 'qunit',
'querystorage' 'querystorage'
], function (test_util, RSVP, jIO, local_storage) { ], function (test_util, RSVP, jIO) {
"use strict"; "use strict";
module("QueryStorage"); module("QueryStorage");
function createQueryStorage(name, key_schema) { function createQueryStorage(name, key_schema) {
var local_description = local_storage.createDescription(name, var local_description = {
name, "type": "local",
'memory'); "username": name,
"application_name": name,
"mode": "memory",
"key_schema": key_schema
};
return jIO.createJIO({ return jIO.createJIO({
type: 'query', type: 'query',
sub_storage: local_description, sub_storage: local_description,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment