mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
describe('sources', function() {
|
|
let tool = eruda.get('sources')
|
|
let $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>'
|
|
)
|
|
})
|
|
})
|
|
})
|