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

Expect attribute to be absent #21

Merged
merged 2 commits into from
Jun 23, 2015

Conversation

papandreou
Copy link
Member

For some reason it was never possible to assert that an attribute is absent by going:

expect(element, 'to have attributes', { foo: undefined });
// or:
expect(element, 'to satisfy', { attributes: { foo: undefined } });

Analogous to the object to satisfy semantics.

This PR fixes that and adds tests.

@papandreou papandreou changed the title Fix/expect absent attribute Expect attribute to be absent Jun 23, 2015
Munter added a commit that referenced this pull request Jun 23, 2015
@Munter Munter merged commit 8f33fb7 into unexpectedjs:master Jun 23, 2015
@Munter
Copy link
Member

Munter commented Jun 23, 2015

Yay!

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.

2 participants