Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Feb 19, 2025
1 parent fa462da commit 504be25
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dart/lib/src/platform/mock_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class MockPlatform extends Platform {
}) {
this.isWeb = isWeb ?? super.isWeb;
this.operatingSystem = operatingSystem ?? super.operatingSystem;
this.operatingSystemVersion = operatingSystemVersion ?? super.operatingSystemVersion;
this.operatingSystemVersion =
operatingSystemVersion ?? super.operatingSystemVersion;
}

factory MockPlatform.android({bool isWeb = false}) {
Expand Down
12 changes: 8 additions & 4 deletions dart/test/sentry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ void main() {
});

test('options.environment debug', () async {
final sentryOptions = defaultTestOptions(MockPlatformChecker(isDebug: true));
final sentryOptions =
defaultTestOptions(MockPlatformChecker(isDebug: true));
await Sentry.init(
(options) {
options.dsn = fakeDsn;
Expand All @@ -454,7 +455,8 @@ void main() {
});

test('options.environment profile', () async {
final sentryOptions = defaultTestOptions(MockPlatformChecker(isProfile: true));
final sentryOptions =
defaultTestOptions(MockPlatformChecker(isProfile: true));

await Sentry.init(
(options) {
Expand All @@ -467,7 +469,8 @@ void main() {
});

test('options.environment production (defaultEnvironment)', () async {
final sentryOptions = defaultTestOptions(MockPlatformChecker(isRelease: true));
final sentryOptions =
defaultTestOptions(MockPlatformChecker(isRelease: true));
await Sentry.init(
(options) {
options.dsn = fakeDsn;
Expand All @@ -479,7 +482,8 @@ void main() {
});

test('options.logger is set by setting the debug flag', () async {
final sentryOptions = defaultTestOptions(MockPlatformChecker(isDebug: true));
final sentryOptions =
defaultTestOptions(MockPlatformChecker(isDebug: true));

await Sentry.init(
(options) {
Expand Down

0 comments on commit 504be25

Please # to comment.