16 lines
344 B
JavaScript
16 lines
344 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('/* test */')
|
|
})
|
|
})
|
|
})
|