diff --git a/packages/neon/neon/test/useragent_test.dart b/packages/neon/neon/test/useragent_test.dart new file mode 100644 index 00000000..b4550fa2 --- /dev/null +++ b/packages/neon/neon/test/useragent_test.dart @@ -0,0 +1,17 @@ +import 'package:neon/src/utils/user_agent.dart'; +import 'package:package_info_plus/package_info_plus.dart'; +import 'package:test/test.dart'; + +void main() { + test('UserAgent', () { + final packageInfo = PackageInfo( + appName: 'appName', + packageName: 'packageName', + version: 'version', + buildNumber: 'buildNumber', + ); + buildUserAgent(packageInfo); + + expect(neonUserAgent, 'Neon version+buildNumber'); + }); +}