mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
Desktop release builds show the version as "5.2.5 (beta)" wherever the display version appears: Settings, About, the update dialog and the version noted in backups. Mobile builds and the version used for update checks and logs are unchanged.
18 lines
592 B
Dart
18 lines
592 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:mornye/constants/app_info.dart';
|
|
|
|
void main() {
|
|
test('desktop release builds mark the version as beta', () {
|
|
expect(
|
|
AppInfo.versionLabel(debug: false, desktop: true),
|
|
'${AppInfo.version} (beta)',
|
|
);
|
|
expect(AppInfo.versionLabel(debug: false, desktop: false), AppInfo.version);
|
|
});
|
|
|
|
test('debug builds stay internal on every platform', () {
|
|
expect(AppInfo.versionLabel(debug: true, desktop: true), 'Internal');
|
|
expect(AppInfo.versionLabel(debug: true, desktop: false), 'Internal');
|
|
});
|
|
}
|