Skip to content

Commit

Permalink
Reference kDevMode directly in test
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Sep 30, 2024
1 parent 5e4eb06 commit 2f59bb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/common/dev_variables_test.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import 'dart:io';

import 'package:test/test.dart';
import 'package:wiredash/src/_wiredash_internal.dart';

void main() {
test('kDevMode == false', () {
final internalFile = File('lib/src/_wiredash_internal.dart');
final content = internalFile.readAsStringSync();
expect(content, contains('kDevMode = false'));
expect(content, isNot(contains('kDevMode = true')));
expect(kDevMode, isFalse);
});

test('_kDebugStreamPod == false', () {
Expand Down

0 comments on commit 2f59bb5

Please sign in to comment.