mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-11 02:08:44 +02:00
fix(metadata): prompt verification during autofill #511
This commit is contained in:
1 parent
33db0cf297
commit
d5bfc1e365
5 files changed
+137
-22
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:spotiflac_android/utils/extension_auth_launcher.dart';
|
||||
|
||||
void main() {
|
||||
test('extracts the extension that raised a verification challenge', () {
|
||||
expect(
|
||||
extensionIdFromVerificationError(
|
||||
"verification_required: extension 'tidal-web' needs verification",
|
||||
const ['amazon-web', 'tidal-web'],
|
||||
),
|
||||
'tidal-web',
|
||||
);
|
||||
});
|
||||
|
||||
test('prefers the longest known extension id in legacy errors', () {
|
||||
expect(
|
||||
extensionIdFromVerificationError(
|
||||
'qobuz-web verification_required',
|
||||
const ['qobuz', 'qobuz-web'],
|
||||
),
|
||||
'qobuz-web',
|
||||
);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user