Files
SpotiFLAC-Mobile/test/app_info_version_test.dart
T
zarzet b0c60acaee feat(desktop): mark the desktop version as beta
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.
2026-10-22 15:34:23 +07:00

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');
});
}