mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-03 17:06:47 +00:00
17 lines
473 B
Dart
17 lines
473 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:twonly/src/services/subscription.service.dart';
|
|
|
|
void main() {
|
|
group('testing subscription permissions', () {
|
|
test('test if restore flames is allowed', () {
|
|
expect(
|
|
true,
|
|
isUserAllowed(SubscriptionPlan.Plus, PremiumFeatures.RestoreFlames),
|
|
);
|
|
expect(
|
|
false,
|
|
isUserAllowed(SubscriptionPlan.Free, PremiumFeatures.RestoreFlames),
|
|
);
|
|
});
|
|
});
|
|
}
|