Skip to content
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

Add support for equal-length assertions fixing #74 #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisrng
Copy link
Contributor

@chrisrng chrisrng commented Oct 2, 2019

No description provided.

@@ -607,6 +607,42 @@ module.exports = function(file, api, options) {
customMessage ? [newValueNode, customMessage] : [newValueNode]));
});

// assert.equal(node.length, 1) -> assert.dom(node).exists({ count: 1 });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems too generic to me. it would basically convert every single array length assertion to a qunit-dom assertion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah good point, seems like we can't really know for sure since the node can be any variable. Any ideas?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, unless we're seeing specifically findAll('.selector').length I don't think there is much we can do here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants