13 lines
549 B
Dart
13 lines
549 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|||
|
|
import 'package:openchamber/state.dart';
|
||
|
|
|
||
|
|
void main() {
|
||
|
|
test('follow-up behavior reads as the first-party default when unknown', () {
|
||
|
|
expect(AppState.normalizeFollowUp('steer'), 'steer');
|
||
|
|
// The removed "immediate" mode was wire-identical to steer.
|
||
|
|
expect(AppState.normalizeFollowUp('immediate'), 'steer');
|
||
|
|
expect(AppState.normalizeFollowUp('queue'), 'queue');
|
||
|
|
expect(AppState.normalizeFollowUp(null), 'queue');
|
||
|
|
expect(AppState.normalizeFollowUp('bogus'), 'queue');
|
||
|
|
});
|
||
|
|
}
|