import 'package:flutter_test/flutter_test.dart'; import 'package:mebarista/models/temperature_sample.dart'; void main() { test( 'temperature sample preserves timestamp, historical target and null sensor', () { final timestamp = DateTime(2026, 1, 1); final sample = TemperatureSample( timestamp: timestamp, boiler: 92, target: 95, ); expect(sample.timestamp, timestamp); expect(sample.boiler, 92); expect(sample.target, 95); expect(sample.sensor2, isNull); final withSensor = TemperatureSample( timestamp: timestamp, boiler: 92, target: 95, sensor2: -2, ); expect(withSensor.sensor2, -2); }, ); }