Initial project import and stabilization baseline

This commit is contained in:
dwindown
2026-03-30 21:28:44 +07:00
commit ad33b01231
186 changed files with 20445 additions and 0 deletions

40
test/widget_test.dart Normal file
View File

@@ -0,0 +1,40 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:jamshalat_masjid_screen/core/enums.dart';
import 'package:jamshalat_masjid_screen/data/local/models.dart';
void main() {
group('PrayerName display labels', () {
test('uses Jumat label for Friday dzuhur', () {
expect(
PrayerName.dzuhur.displayLabel(isFriday: true),
'JUMAT',
);
expect(
PrayerName.dzuhur.displayLabel(isFriday: false),
'Dzuhur',
);
});
test('marks fardhu prayers correctly', () {
expect(PrayerName.subuh.isFardhu, isTrue);
expect(PrayerName.imsak.isFardhu, isFalse);
});
});
group('AppSettings copyWith', () {
test('preserves defaults and overrides selected fields', () {
final settings = AppSettings();
final updated = settings.copyWith(
masjidName: 'Masjid Raya',
cityIdApi: '1301',
iqomahDzuhur: 12,
);
expect(updated.masjidName, 'Masjid Raya');
expect(updated.cityIdApi, '1301');
expect(updated.iqomahDzuhur, 12);
expect(updated.masjidAddress, settings.masjidAddress);
expect(updated.runningTexts, settings.runningTexts);
});
});
}