forked from eatvio/eatvio_app
feat(video_calls): ios mic fix, android call fix. feat(dev_tools): base url caching
This commit is contained in:
@@ -4,57 +4,46 @@ import 'package:flutter_test/flutter_test.dart';
|
||||
void main() {
|
||||
group('PrefsKeys', () {
|
||||
test('has all expected values', () {
|
||||
expect(PrefsKeys.values.length, 5);
|
||||
expect(PrefsKeys.values.length, 6);
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.hasAnonymousTokenBeenSent));
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.welcomeScreenWasShowed));
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.registrationDate));
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.marketingBottomSheetHasBeenShown));
|
||||
expect(
|
||||
PrefsKeys.values,
|
||||
contains(PrefsKeys.marketingBottomSheetHasBeenShown),
|
||||
);
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.isEmailVerificationSkipped));
|
||||
expect(PrefsKeys.values, contains(PrefsKeys.customBaseUrl));
|
||||
});
|
||||
|
||||
test('can be compared', () {
|
||||
expect(PrefsKeys.hasAnonymousTokenBeenSent == PrefsKeys.hasAnonymousTokenBeenSent, true);
|
||||
expect(PrefsKeys.hasAnonymousTokenBeenSent == PrefsKeys.welcomeScreenWasShowed, false);
|
||||
expect(
|
||||
PrefsKeys.hasAnonymousTokenBeenSent ==
|
||||
PrefsKeys.hasAnonymousTokenBeenSent,
|
||||
true,
|
||||
);
|
||||
expect(
|
||||
PrefsKeys.hasAnonymousTokenBeenSent == PrefsKeys.welcomeScreenWasShowed,
|
||||
false,
|
||||
);
|
||||
});
|
||||
|
||||
test('has correct name property', () {
|
||||
expect(PrefsKeys.hasAnonymousTokenBeenSent.name, 'hasAnonymousTokenBeenSent');
|
||||
expect(
|
||||
PrefsKeys.hasAnonymousTokenBeenSent.name,
|
||||
'hasAnonymousTokenBeenSent',
|
||||
);
|
||||
expect(PrefsKeys.welcomeScreenWasShowed.name, 'welcomeScreenWasShowed');
|
||||
expect(PrefsKeys.registrationDate.name, 'registrationDate');
|
||||
expect(PrefsKeys.marketingBottomSheetHasBeenShown.name, 'marketingBottomSheetHasBeenShown');
|
||||
expect(PrefsKeys.isEmailVerificationSkipped.name, 'isEmailVerificationSkipped');
|
||||
expect(
|
||||
PrefsKeys.marketingBottomSheetHasBeenShown.name,
|
||||
'marketingBottomSheetHasBeenShown',
|
||||
);
|
||||
expect(
|
||||
PrefsKeys.isEmailVerificationSkipped.name,
|
||||
'isEmailVerificationSkipped',
|
||||
);
|
||||
expect(PrefsKeys.customBaseUrl.name, 'customBaseUrl');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user