forked from eatvio/eatvio_app
39 lines
1019 B
Dart
39 lines
1019 B
Dart
import 'package:eatvio_app/core/app_initializer.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
group('AppBuildType', () {
|
|
test('has prod value', () {
|
|
expect(AppBuildType.prod, AppBuildType.prod);
|
|
});
|
|
|
|
test('has tests value', () {
|
|
expect(AppBuildType.tests, AppBuildType.tests);
|
|
});
|
|
|
|
test('has dev value', () {
|
|
expect(AppBuildType.dev, AppBuildType.dev);
|
|
});
|
|
|
|
test('all values are distinct', () {
|
|
expect(AppBuildType.prod != AppBuildType.tests, true);
|
|
expect(AppBuildType.prod != AppBuildType.dev, true);
|
|
expect(AppBuildType.tests != AppBuildType.dev, true);
|
|
});
|
|
});
|
|
|
|
group('AppInitializer', () {
|
|
test('is a class', () {
|
|
expect(AppInitializer, isA<Type>());
|
|
});
|
|
|
|
test('has initialize static method', () {
|
|
expect(AppInitializer.initialize, isA<Function>());
|
|
});
|
|
|
|
test('has runAppWithSentry static method', () {
|
|
expect(AppInitializer.runAppWithSentry, isA<Function>());
|
|
});
|
|
});
|
|
}
|