From a31348467d8985b699a3557b864e51e2fb3d3e13 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Tue, 30 Jul 2024 17:07:26 +0200 Subject: [PATCH] fix: codestyle --- test/unit/locator_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/locator_test.js b/test/unit/locator_test.js index aec941a8b..41680548f 100644 --- a/test/unit/locator_test.js +++ b/test/unit/locator_test.js @@ -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('') })