12 lines
375 B
Dart
12 lines
375 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:qhd_prevention/services/SessionService.dart';
|
|
|
|
void main() {
|
|
test('preserves the nine-company device-management flag from login data', () {
|
|
final user = UserData.fromJson({'nineCompanyFlag': true});
|
|
|
|
expect(user.nineCompanyFlag, isTrue);
|
|
expect(user.toJson()['nineCompanyFlag'], isTrue);
|
|
});
|
|
}
|