Also include operator:wikidata as a wikidata tag

osmEntity#hasWikipedia was only used by the suspicious_name validator
This commit is contained in:
Bryan Housel
2021-01-29 09:35:28 -05:00
parent b032cd9f01
commit 3665f80d46
3 changed files with 9 additions and 24 deletions
-14
View File
@@ -275,20 +275,6 @@ describe('iD.osmEntity', function () {
});
});
describe('#hasWikidata', function () {
it('returns false if entity has no tags', function () {
expect(iD.osmEntity().hasWikidata()).to.be.not.ok;
});
it('returns true if entity has a wikidata tag', function () {
expect(iD.osmEntity({ tags: { wikidata: 'Q18275868' } }).hasWikidata()).to.be.ok;
});
it('returns true if entity has a brand:wikidata tag', function () {
expect(iD.osmEntity({ tags: { 'brand:wikidata': 'Q18275868' } }).hasWikidata()).to.be.ok;
});
});
describe('#hasInterestingTags', function () {
it('returns false if the entity has no tags', function () {
expect(iD.osmEntity().hasInterestingTags()).to.equal(false);