-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added more validation tests #5639
Conversation
var issues = validate(); | ||
expect(issues).to.have.lengthOf(1); | ||
var issue = issues[0]; | ||
expect(issue.type).to.eql(iD.ValidationIssueType.deprecated_tags); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a check on severity?
var issues = validate(); | ||
expect(issues).to.have.lengthOf(1); | ||
var issue = issues[0]; | ||
expect(issue.type).to.eql(iD.ValidationIssueType.disconnected_highway); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
issues = issueManager.getIssues(); | ||
expect(issues).to.have.lengthOf(1); | ||
var issue = issues[0]; | ||
expect(issue.type).to.eql(iD.ValidationIssueType.missing_tag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this one is OK -- i'm just testing that the issuemanager validates
var issues = validate(); | ||
expect(issues).to.have.lengthOf(1); | ||
var issue = issues[0]; | ||
expect(issue.type).to.eql(iD.ValidationIssueType.tag_suggests_area); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
renamed issueManager.js to issue_manager.js for consistency
added tests for IssueManager, and deprecatedTag, disconnectedHighway, tagSuggestsArea validators