Browse Source

test(neon): test useragent

Signed-off-by: Nikolas Rimikis <rimikis.nikolas@gmail.com>
pull/639/head
Nikolas Rimikis 1 year ago
parent
commit
3f8291ece3
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 17
      packages/neon/neon/test/useragent_test.dart

17
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');
});
}
Loading…
Cancel
Save