'use strict';
let should = require('should');
let hljs = require('../../build');
describe('.fixmarkup()', function() {
after(function() {
hljs.configure({ useBR: false })
})
it('should not add "undefined" to the beginning of the result (#1452)', function() {
hljs.configure({ useBR: true })
const value = '{ "some": \n "json" }';
const result = hljs.fixMarkup(value);
result.should.equal(
'{ "some":
"json" }'
);
});
});