Files
eruda/test/sources.js
2018-06-16 18:07:12 +08:00

18 lines
395 B
JavaScript

describe('sources', function() {
var tool = eruda.get('sources'),
$tool = $('.eruda-sources')
beforeEach(function() {
eruda.show('sources')
})
describe('js', function() {
it('highlight', function() {
tool.set('js', '/* test */')
expect($tool.find('.eruda-content')).toContainHtml(
'<span style="color:#63a35c;">/* test */</span>'
)
})
})
})