mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
describe('elements', function() {
|
|
let tool = eruda.get('elements')
|
|
let $tool = $('.eruda-elements')
|
|
|
|
beforeEach(function() {
|
|
eruda.show('elements')
|
|
})
|
|
|
|
describe('api', function() {
|
|
it('set element', function() {
|
|
tool.set(document.body)
|
|
expect($tool.find('.eruda-parent')).toContainText('html')
|
|
expect($tool.find('.eruda-breadcrumb')).toContainText('body')
|
|
})
|
|
})
|
|
})
|