fix(reenrich): preserve release identity in batch actions

This commit is contained in:
zarzet
2026-07-26 12:28:00 +07:00
parent b93ebc1e8d
commit 5f5186a23e
8 changed files with 41 additions and 6 deletions
+18
View File
@@ -0,0 +1,18 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:spotiflac_android/utils/re_enrich_release_policy.dart';
void main() {
test(
'only deliberate single-file re-enrich can replace release identity',
() {
expect(
allowsReleaseIdentityReplacement(ReEnrichOperationScope.singleFile),
isTrue,
);
expect(
allowsReleaseIdentityReplacement(ReEnrichOperationScope.batch),
isFalse,
);
},
);
}