Skip to content

Commit

Permalink
Add test for URLS in attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dail committed Aug 25, 2017
1 parent f976a3e commit 9e1ead2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/enzyme-test-suite/test/selector-spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,17 @@ describe('selectors', () => {
);
expect(wrapper.find('[type="foo[1]"]').length).to.equal(1);
});

it('URLs in attribute values', () => {
const wrapper = renderMethod(
<div>
<a href="https://www.foo.com" />
<a href="foo.com" />
</div>,
);
expect(wrapper.find('a[href="https://www.foo.com"]').length).to.equal(1);
expect(wrapper.find('a[href="foo.com"]').length).to.equal(1);
});
});
});
});

0 comments on commit 9e1ead2

Please sign in to comment.