Skip to content

Commit

Permalink
Test that kDevMode is always false for release
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Feb 21, 2024
1 parent 27c8727 commit 5d7e6a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/common/dev_variables_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import 'dart:io';

import 'package:test/test.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')));
});
}

0 comments on commit 5d7e6a8

Please sign in to comment.