We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17cb64f commit 4e66dcfCopy full SHA for 4e66dcf
1 file changed
test/common/overlay/KnowledgeGraphSpec.js
@@ -63,11 +63,17 @@ const data = {
63
64
describe('KnowledgeGraph', () => {
65
var originalTimeout;
66
- var dom = window.document.createElement('div');
67
- dom.setAttribute('id', 'knowledgeGraph');
68
- dom.style.width = '450px';
69
- dom.style.height = '350px';
70
- window.document.body.appendChild(dom);
+ var dom;
+ beforeAll(() => {
+ dom = window.document.createElement('div');
+ dom.setAttribute('id', 'knowledgeGraph');
+ dom.style.width = '450px';
71
+ dom.style.height = '350px';
72
+ window.document.body.appendChild(dom);
73
+ });
74
+ afterAll(() => {
75
+ window.document.body.removeChild(dom);
76
77
beforeEach(() => {
78
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
79
jasmine.DEFAULT_TIMEOUT_INTERVAL = 50000;
0 commit comments