diff --git a/test/widget_test.dart b/test/widget_test.dart index 710bdd5..2570572 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -44,6 +44,22 @@ void main() { expect(urls, ['https://h5-test.imharry.work/']); }); + test('keeps fixed bootstrap H5 line for loopback browser access', () { + final urls = AppConfig.defaultH5LineUrlsForBaseUri( + Uri.parse('http://127.0.0.1:3000/'), + ); + + expect(urls, ['https://h5-test.imharry.work/']); + }); + + test('keeps fixed bootstrap H5 line for native app access', () { + final urls = AppConfig.defaultH5LineUrlsForBaseUri( + Uri.parse('file:///android_asset/flutter_assets/'), + ); + + expect(urls, ['https://h5-test.imharry.work/']); + }); + test('uses fixed client config query parameters', () { expect(AppConfig.clientConfigQueryPayload, { 'device': 'h5',