From a05d2f39c47fdcccd3a53353061c42c2ad953aa5 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Mon, 28 Aug 2023 18:38:27 +0200 Subject: [PATCH] test(neon): test NeonPlatform Signed-off-by: Nikolas Rimikis --- packages/neon/neon/test/neon_platform_test.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/neon/neon/test/neon_platform_test.dart diff --git a/packages/neon/neon/test/neon_platform_test.dart b/packages/neon/neon/test/neon_platform_test.dart new file mode 100644 index 00000000..06c6395d --- /dev/null +++ b/packages/neon/neon/test/neon_platform_test.dart @@ -0,0 +1,12 @@ +import 'package:neon/src/platform/platform.dart'; +import 'package:test/test.dart'; + +void main() { + test('NeonPlatform', () async { + expect(() => NeonPlatform.instance, throwsA(isA())); + + await NeonPlatform.setup(); + + expect(NeonPlatform.instance, isA()); + }); +}