added simple tests for loading and retrieving notes

This commit is contained in:
Thomas Hervey
2018-07-16 10:54:40 -04:00
parent 7fb42ac9d6
commit 7ad765d408
3 changed files with 59 additions and 2 deletions
+9
View File
@@ -956,6 +956,15 @@ export default {
};
}
// access caches directly for testing (e.g., loading notes rtree)
if (obj === 'get') {
return {
tile: _tileCache,
note: _noteCache,
user: _userCache
};
}
if (obj.tile) {
_tileCache = obj.tile;
_tileCache.inflight = {};