Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
taoqf committed Apr 24, 2023
1 parent d60f7da commit a439a96
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/tests/issues/239.js
@@ -0,0 +1,9 @@
const { parse } = require('@test/test-target');

describe('issue 239', function () {
it('query', function () {
const root = parse('<ul id="list"><li>Hello World</li></ul>');
root.querySelector('#list').toString().should.eql('<ul id="list"><li>Hello World</li></ul>');
root.querySelector('li').toString().should.eql('<li>Hello World</li>');
});
});

0 comments on commit a439a96

Please sign in to comment.