diff --git a/src/adapter.js b/src/adapter.js index 7dc2dc1..4412042 100644 --- a/src/adapter.js +++ b/src/adapter.js @@ -162,14 +162,6 @@ function KarmaReporter (tc, jasmineEnv) { // because user can mock it var _Date = Date - /** - * @param suite - * @returns {boolean} Return true if it is system jasmine top level suite - */ - function isTopLevelSuite (suite) { - return suite.description === 'Jasmine_TopLevel_Suite' - } - function handleGlobalErrors (result) { if (result.failedExpectations && result.failedExpectations.length) { var message = 'An error was thrown in afterAll' @@ -214,9 +206,7 @@ function KarmaReporter (tc, jasmineEnv) { } this.suiteStarted = function (result) { - if (!isTopLevelSuite(result)) { - currentSuite = currentSuite.addChild(result.description) - } + currentSuite = currentSuite.addChild(result.description) } this.suiteDone = function (result) {