mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
// tests taken from https://www.npmjs.com/package/chai-html
|
|
|
|
import { use, expect } from 'chai';
|
|
import * as chaiHtml from 'chai-html';
|
|
|
|
use(chaiHtml);
|
|
|
|
expect('<div><img /></div>').html.to.equal('<div><img></div>');
|
|
expect('<h1>Hello World!</h1>').html.to.not.equal('<h1>Hallo Welt!</h1>');
|
|
|
|
expect('<div><!--Comment--></div>').html.ignoringComments.to.equal('<div></div>');
|