| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,11 +63,17 @@ const data = { | |||
| 63 | 63 | ||
| 64 | 64 | describe('KnowledgeGraph', () => { | |
| 65 | 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); | ||
| 66 | + var dom; | ||
| 67 | + beforeAll(() => { | ||
| 68 | + dom = window.document.createElement('div'); | ||
| 69 | + dom.setAttribute('id', 'knowledgeGraph'); | ||
| 70 | + 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 | + }); | ||
| 71 | 77 | beforeEach(() => { | |
| 72 | 78 | originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL; | |
| 73 | 79 | jasmine.DEFAULT_TIMEOUT_INTERVAL = 50000; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments