bluetooth connectivity layer added
This commit is contained in:
@@ -49,4 +49,30 @@ void main() {
|
||||
final settings = await repository.load();
|
||||
expect(settings.currentMissionId, isNull);
|
||||
});
|
||||
|
||||
test('Verbindungseinstellungen: Standard ist kein Geraet, Autoconnect an',
|
||||
() async {
|
||||
final settings = await repository.load();
|
||||
expect(settings.connectionDeviceAddress, isNull);
|
||||
expect(settings.connectionAutoConnect, isTrue);
|
||||
});
|
||||
|
||||
test('setConnectionDeviceAddress merkt sich die MAC-Adresse', () async {
|
||||
await repository.setConnectionDeviceAddress('AA:BB:CC:DD:EE:FF');
|
||||
|
||||
expect(
|
||||
await repository.loadConnectionDeviceAddress(),
|
||||
'AA:BB:CC:DD:EE:FF',
|
||||
);
|
||||
});
|
||||
|
||||
test('setConnectionAutoConnect(false) bleibt unabhaengig von der MAC-Adresse',
|
||||
() async {
|
||||
await repository.setConnectionDeviceAddress('AA:BB:CC:DD:EE:FF');
|
||||
await repository.setConnectionAutoConnect(false);
|
||||
|
||||
final settings = await repository.load();
|
||||
expect(settings.connectionDeviceAddress, 'AA:BB:CC:DD:EE:FF');
|
||||
expect(settings.connectionAutoConnect, isFalse);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user