Ticket/InsdepUI/plugin/highlight-9.9.0/test/api/fixmarkup.js
(完整代码) 599B'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 = '{ <span class="hljs-attr">"some"</span>: \n <span class="hljs-string">"json"</span> }';
const result = hljs.fixMarkup(value);
result.should.equal(
'{ <span class="hljs-attr">"some"</span>: <br> <span class="hljs-string">"json"</span> }'
);
});
});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。