autoconnect on fly mode (does not work yet)
This commit is contained in:
@@ -117,4 +117,23 @@ void main() {
|
||||
|
||||
expect(await repository.loadConnectionWifiSsidPrefix(), 'mLRS-1234');
|
||||
});
|
||||
|
||||
test('gemerkte SSID: Standard ist null (noch nie verbunden)', () async {
|
||||
final settings = await repository.load();
|
||||
expect(settings.connectionWifiLastSsid, isNull);
|
||||
});
|
||||
|
||||
test('setConnectionWifiLastSsid merkt sich die verbundene SSID', () async {
|
||||
await repository.setConnectionWifiLastSsid('mLRS-ABCD');
|
||||
|
||||
expect(await repository.loadConnectionWifiLastSsid(), 'mLRS-ABCD');
|
||||
});
|
||||
|
||||
test('setConnectionWifiLastSsid(null) loescht die Erinnerung wieder',
|
||||
() async {
|
||||
await repository.setConnectionWifiLastSsid('mLRS-ABCD');
|
||||
await repository.setConnectionWifiLastSsid(null);
|
||||
|
||||
expect(await repository.loadConnectionWifiLastSsid(), isNull);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user