fix(pdf): make footer and all content stay compact and strictly within half-sheet area
This commit is contained in:
@@ -104,7 +104,7 @@ void main() {
|
||||
});
|
||||
|
||||
group('PrescriptionPdfService Tests', () {
|
||||
test('builds prescription pdf bytes with correct page format', () async {
|
||||
test('builds prescription pdf bytes with correct page format and layout', () async {
|
||||
final bytes = await PrescriptionPdfService.buildPrescriptionPdf(
|
||||
doctorName: 'Dr. Luis A. Castro Sosa',
|
||||
specialty: 'Cirujano Urólogo',
|
||||
@@ -115,7 +115,6 @@ void main() {
|
||||
);
|
||||
|
||||
expect(bytes, isNotEmpty);
|
||||
// Valid PDF magic header %PDF
|
||||
expect(bytes.sublist(0, 4), equals([0x25, 0x50, 0x44, 0x46]));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user