mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
19 lines
687 B
JavaScript
19 lines
687 B
JavaScript
import { fixture, expect } from '../index.js';
|
|
|
|
describe('Plugin - semantic-dom-diff', () => {
|
|
it('can semantically compare full dom trees', async () => {
|
|
const el = await fixture(`<div><!-- comment --><h1>${'Hey'} </h1> </div>`);
|
|
expect(el).dom.to.equal('<div><h1>Hey</h1></div>');
|
|
});
|
|
|
|
it('can semantically compare lightDom trees', async () => {
|
|
const el = await fixture(`<div><!-- comment --><h1>${'Hey'} </h1> </div>`);
|
|
expect(el).lightDom.to.equal('<h1>Hey</h1>');
|
|
});
|
|
|
|
it('can compare against a snapshot', async () => {
|
|
const el = await fixture(`<div><!-- comment --><h1>${'Hey'} </h1> </div>`);
|
|
expect(el).dom.to.equalSnapshot();
|
|
});
|
|
});
|