Skip to content

Commit

Permalink
fix: codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jul 30, 2024
1 parent 289c2dc commit a313484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/locator_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ describe('Locator', () => {

it('should transform CSS having has pseudo to xpath', () => {
const l = new Locator('#submit-element:has(button)', 'css')
const convertedXpath = l.toXPath();
const convertedXpath = l.toXPath()
const nodes = xpath.select(l.toXPath(), doc)
expect(convertedXpath).to.equal('.//*[(./@id = \'submit-element\' and .//button)]')
expect(convertedXpath).to.equal(".//*[(./@id = 'submit-element' and .//button)]")
expect(nodes).to.have.length(1)
expect(nodes[0].firstChild.data.trim()).to.eql('')
})
Expand Down

0 comments on commit a313484

Please sign in to comment.