mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[visConfig/tests] test with own element, cleanup after (#14215)
This commit is contained in:
parent
c7d147df89
commit
0a4a2a1219
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,7 @@ describe('Vislib VisConfig Class Test Suite', function () {
|
|||
beforeEach(ngMock.inject(function (Private, $injector) {
|
||||
const VisConfig = Private(VislibVisConfigProvider);
|
||||
const PersistedState = $injector.get('PersistedState');
|
||||
el = d3.select('body')
|
||||
el = d3.select('body').append('div')
|
||||
.attr('class', 'vis-wrapper')
|
||||
.node();
|
||||
|
||||
|
@ -79,6 +79,10 @@ describe('Vislib VisConfig Class Test Suite', function () {
|
|||
}, data, new PersistedState(), el);
|
||||
}));
|
||||
|
||||
afterEach(() => {
|
||||
el.remove();
|
||||
});
|
||||
|
||||
describe('get Method', function () {
|
||||
it('should be a function', function () {
|
||||
expect(typeof visConfig.get).to.be('function');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue