forked from MapComplete/MapComplete
Do not show out-of-range features on speelplekken layer, fix handling of mutlipolygons in 'inside', better tests
This commit is contained in:
parent
117b0bddb1
commit
6f457a6f0d
26 changed files with 1284 additions and 770 deletions
|
@ -16,20 +16,26 @@ import {SubstitutedTranslation} from "../UI/SubstitutedTranslation";
|
|||
import {Tag} from "../Logic/Tags/Tag";
|
||||
import {And} from "../Logic/Tags/And";
|
||||
import {ImageSearcher} from "../Logic/Actors/ImageSearcher";
|
||||
export default class ImageSearcherSpec extends T {
|
||||
|
||||
constructor() {
|
||||
super("ImageSearcher", [
|
||||
[
|
||||
"Should find images",
|
||||
() => {
|
||||
const tags = new UIEventSource({
|
||||
"mapillary": "https://www.mapillary.com/app/?pKey=bYH6FFl8LXAPapz4PNSh3Q"
|
||||
});
|
||||
const searcher = ImageSearcher.construct(tags)
|
||||
const result = searcher.data[0];
|
||||
equal(result.url, "https://www.mapillary.com/map/im/bYH6FFl8LXAPapz4PNSh3Q");
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
new T("ImageSearcher", [
|
||||
[
|
||||
"Should find images",
|
||||
() => {
|
||||
const tags = new UIEventSource({
|
||||
"mapillary": "https://www.mapillary.com/app/?pKey=bYH6FFl8LXAPapz4PNSh3Q"
|
||||
});
|
||||
const searcher = ImageSearcher.construct(tags)
|
||||
const result = searcher.data[0];
|
||||
equal(result.url, "https://www.mapillary.com/map/im/bYH6FFl8LXAPapz4PNSh3Q");
|
||||
}
|
||||
]
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue