Skip to content

Commit

Permalink
Remove Core UI from karma tests (#39805)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Jun 27, 2019
1 parent 26b884f commit bca05f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legacy/core_plugins/tests_bundle/tests_entry_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ fetchMock.post(/\\/api\\/capabilities/, {
headers: { 'Content-Type': 'application/json' },
});
// render the core system in a child of the body as the default children of the body
// in the browser tests are needed for mocha and other test components to work
// render the core system in a element not attached to the document as the
// default children of the body in the browser tests are needed for mocha and
// other test components to work
const rootDomElement = document.createElement('div');
document.body.appendChild(rootDomElement)
const coreSystem = new CoreSystem({
injectedMetadata: {
Expand Down

0 comments on commit bca05f8

Please sign in to comment.