forked from MapComplete/MapComplete
Fix: tests
This commit is contained in:
parent
fbf2742f80
commit
2a73c43a5f
2 changed files with 6 additions and 5 deletions
|
@ -59,9 +59,10 @@ export default class SaveFeatureSourceToLocalStorage {
|
|||
layername: string,
|
||||
zoomlevel: number,
|
||||
features: FeatureSource,
|
||||
featureProperties: FeaturePropertiesStore
|
||||
featureProperties: FeaturePropertiesStore,
|
||||
maxCacheAge: number
|
||||
) {
|
||||
const storage = TileLocalStorage.construct<Feature[]>(backend, layername)
|
||||
const storage = TileLocalStorage.construct<Feature[]>(backend, layername, maxCacheAge)
|
||||
const singleTileSavers: Map<number, SingleTileSaver> = new Map<number, SingleTileSaver>()
|
||||
features.features.addCallbackAndRunD((features) => {
|
||||
const sliced = GeoOperations.slice(zoomlevel, features)
|
||||
|
|
|
@ -35,9 +35,9 @@ export class Tag extends TagsFilter {
|
|||
* isEmpty.matchesProperties({"other_key": "value"}) // => true
|
||||
* isEmpty.matchesProperties({"key": undefined}) // => true
|
||||
*
|
||||
* const isTrue = new Tag("key", "true")
|
||||
* isTrue.matchesProperties({"key","true"}) // => true
|
||||
* isTrue.matchesProperteis({"key", true}) // => true
|
||||
* const isTrue = new Tag("key": "true")
|
||||
* isTrue.matchesProperties({"key":"true"}) // => true
|
||||
* isTrue.matchesProperties({"key": true}) // => true
|
||||
*/
|
||||
matchesProperties(properties: Record<string, string>): boolean {
|
||||
let foundValue = properties[this.key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue