import 'package:flutter_test/flutter_test.dart'; import 'package:smoke_cess_app/providers/settings_provider.dart'; void main() { group('SettingsProvider', () { test('initial state', () { final provider = SettingsProvider(); expect(provider.settings, isNull); expect(provider.initialized, isFalse); expect(provider.scanning, isFalse); }); test('initialize settings', () async { final provider = SettingsProvider(); provider.initSettings(); expect(provider.settings, isNotNull); expect(provider.initialized, isTrue); }); test('set scanning', () { final provider = SettingsProvider(); provider.scanning = true; expect(provider.scanning, isTrue); provider.scanning = false; expect(provider.scanning, isFalse); }); }); }