mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
21 lines
481 B
JavaScript
21 lines
481 B
JavaScript
describe('elements', function ()
|
|
{
|
|
var tool = eruda.get('elements'),
|
|
$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');
|
|
});
|
|
});
|
|
});
|