fix:第一轮跑
This commit is contained in:
1 parent
e834ec7586
commit
33235f450b
56 files changed
+4357
-210
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:jinzhi_flutter_app/features/web/presentation/web_page.dart';
|
||||
|
||||
void main() {
|
||||
test('accepts only http and https URLs with a host', () {
|
||||
expect(
|
||||
parseSafeWebUri('https://h5.example.com/page')?.host,
|
||||
'h5.example.com',
|
||||
);
|
||||
expect(parseSafeWebUri('mailto:test@example.com'), isNull);
|
||||
expect(parseSafeWebUri('javascript:alert(1)'), isNull);
|
||||
expect(parseSafeWebUri(''), isNull);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user