Skip to content

Commit

Permalink
test: document a failing css-select case
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Aug 20, 2018
1 parent ae9a25d commit 124fa16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/surgeon/queries/single-match.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,19 @@ test('extracts a single value (expression string [foo*="bar"])', (t): void => {

t.true(x(query, subject) === 'bar');
});

// @see https://github.com/fb55/css-select/issues/111
// eslint-disable-next-line ava/no-skip-test
test.skip('extracts a single value (expression string `.foo:has(+.bar)`)', (t): void => {
const x = surgeon();

const subject = `
<div class="foo">a</div>
<div class="bar">b</div>
`;

// eslint-disable-next-line quotes
const query: DenormalizedQueryType = `select '.foo:has(+.bar)' | read property textContent`;

t.true(x(query, subject) === 'foo');
});

0 comments on commit 124fa16

Please sign in to comment.