added support for multiple accounts, guardian login bugfixes, ui changes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:marianum_mobile/share_intent/share_intent_listener.dart';
|
||||
|
||||
void main() {
|
||||
test('guardian login links are not shares', () {
|
||||
expect(
|
||||
ShareIntentListener.isAppLink(
|
||||
'https://connect.example.de/app/guardian-login?r=1&t=2',
|
||||
),
|
||||
isTrue,
|
||||
);
|
||||
});
|
||||
|
||||
test('ordinary shared text and urls stay shares', () {
|
||||
expect(
|
||||
ShareIntentListener.isAppLink('https://example.de/artikel'),
|
||||
isFalse,
|
||||
);
|
||||
expect(
|
||||
ShareIntentListener.isAppLink('Guck mal /app/guardian-login'),
|
||||
isFalse,
|
||||
);
|
||||
expect(ShareIntentListener.isAppLink('Hallo'), isFalse);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user