Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(adapter): do not emit debug url unless in a browser #263

Merged
merged 1 commit into from Feb 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/adapter.js
Expand Up @@ -247,8 +247,10 @@ function KarmaReporter (tc, jasmineEnv) {
result.log.push(formatFailedStep(steps[i]))
}

// Report the name of fhe failing spec so the reporter can emit a debug url.
result.debug_url = debugUrl(specResult.fullName)
if (typeof window !== 'undefined' && window.location && window.location.origin) {
// Report the name of fhe failing spec so the reporter can emit a debug url.
result.debug_url = debugUrl(specResult.fullName)
}
}

// When failSpecWithNoExpectations is true, Jasmine will report specs without expectations as failed
Expand Down