Browse Source

test(neon): test NeonPlatform

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

12
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<StateError>()));
await NeonPlatform.setup();
expect(NeonPlatform.instance, isA<NeonPlatform>());
});
}
Loading…
Cancel
Save