forked from eatvio/eatvio_app
chore(dependencies): add webview_flutter_platform_interface package to pubspec.yaml and clean up test files by removing unnecessary whitespace
This commit is contained in:
@@ -3,20 +3,28 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
group('MarketingCubitState', () {
|
||||
test('creates state with const constructor', () {
|
||||
test('creates MarketingCubitState', () {
|
||||
const state = MarketingCubitState();
|
||||
|
||||
expect(state, isNotNull);
|
||||
expect(state, isA<MarketingCubitState>());
|
||||
});
|
||||
|
||||
test('can create multiple instances', () {
|
||||
test('creates multiple MarketingCubitState instances', () {
|
||||
const state1 = MarketingCubitState();
|
||||
const state2 = MarketingCubitState();
|
||||
|
||||
expect(state1, isA<MarketingCubitState>());
|
||||
expect(state2, isA<MarketingCubitState>());
|
||||
expect(state1 == state2, true);
|
||||
// Both should be valid instances
|
||||
expect(state1, isNotNull);
|
||||
expect(state2, isNotNull);
|
||||
});
|
||||
|
||||
test('MarketingCubitState is const', () {
|
||||
const state1 = MarketingCubitState();
|
||||
const state2 = MarketingCubitState();
|
||||
|
||||
// Const instances should be equal
|
||||
expect(state1, state2);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -62,3 +62,7 @@ void main() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user