14 lines
468 B
Dart
14 lines
468 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:pipelines_app/application/app_session.dart';
|
|
|
|
void main() {
|
|
test('a known server opens the app instead of the connection screen', () {
|
|
final fresh = AppSession(endpoint: null);
|
|
final known = AppSession(endpoint: null, knownServer: true);
|
|
addTearDown(fresh.dispose);
|
|
addTearDown(known.dispose);
|
|
expect(fresh.everConnected, isFalse);
|
|
expect(known.everConnected, isTrue);
|
|
});
|
|
}
|