/* eslint-env mocha, browser */
const { expect } = chai;

describe('DOM nodes', () => {
  it('should find valid xpath in element', () => {
    const element = document.createElement('blink');
    expect(element).to.have.xpath('//blink');
  });

  it('should throw if it does not find valid xpath in element', () => {
    const element = document.createElement('div');
    expect(() => {
      expect(element).to.have.xpath('//h1');
    }).to.throw('Expected "<div></div>" to have xpath \'//h1\'');
  });
});

/* eslint-env mocha, browser */
const { expect } = chai;

describe('DOM nodes', () => {
  it('should find valid xpath in element', () => {
    const element = document.createElement('blink');
    expect(element).to.have.xpath('//blink');
  });

  it('should throw if it does not find valid xpath in element', () => {
    const element = document.createElement('div');
    expect(() => {
      expect(element).to.have.xpath('//h1');
    }).to.throw('to have xpath \'//h1\'');
  });
});

Fix dom test after adding pretty print of html
test: Fix dom test after adding pretty print of html
