Ghost/core/test/unit/lib/mobiledoc/cards/hr_spec.js

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>');
});
});