mirror of https://github.com/TryGhost/Ghost.git
17 lines
494 B
JavaScript
17 lines
494 B
JavaScript
const should = require('should');
|
|
const card = require('../../../../../server/lib/mobiledoc/cards/hr');
|
|
const SimpleDom = require('simple-dom');
|
|
const serializer = new SimpleDom.HTMLSerializer(SimpleDom.voidMap);
|
|
|
|
describe('HR card', function () {
|
|
it('generates a horizontal rule', function () {
|
|
let opts = {
|
|
env: {
|
|
dom: new SimpleDom.Document()
|
|
}
|
|
};
|
|
|
|
serializer.serialize(card.render(opts)).should.match('<hr>');
|
|
});
|
|
});
|