mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
added simple tests for loading and retrieving notes
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user