Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apply dartfmt changes
  • Loading branch information
yrom committed Sep 2, 2019
commit 7e77952610f424a1a8ae807e4ff1114d7a5be0cd
2 changes: 1 addition & 1 deletion lib/sentry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class SentryClient {
var pathLength = dsnUri.pathSegments.length;
var apiPath;
if (pathLength > 1) {
// some paths would present before the projectID in the dsnUri
// some paths would present before the projectID in the dsnUri
apiPath =
(dsnUri.pathSegments.sublist(0, pathLength - 1) + ['api']).join('/');
} else {
Expand Down
6 changes: 4 additions & 2 deletions test/sentry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ import 'package:test/test.dart';

const String _testDsn = 'https://public:[email protected]/1';
const String _testDsnWithoutSecret = 'https://[email protected]/1';
const String _testDsnWithPath = 'https://public:[email protected]/path/1';
const String _testDsnWithPort = 'https://public:[email protected]:8888/1';
const String _testDsnWithPath =
'https://public:[email protected]/path/1';
const String _testDsnWithPort =
'https://public:[email protected]:8888/1';
void main() {
group('$SentryClient', () {
test('can parse DSN', () async {
Expand Down