feat(date):更新日期组件
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import 'package:flutter_common/flutter_common.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import 'package:flutter_common/flutter_common.dart';
|
||||
|
||||
void main() {
|
||||
test('adds one to input values', () {
|
||||
final calculator = Calculator();
|
||||
expect(calculator.addOne(2), 3);
|
||||
expect(calculator.addOne(-7), -6);
|
||||
expect(calculator.addOne(0), 1);
|
||||
test('exports date utility helpers', () {
|
||||
final formatted = DateTimeUtils.dateTimeUtilsTool(
|
||||
dateTime: DateTime(2026, 4, 15).toIso8601String(),
|
||||
dateTimeUtilsType: DateTimeUtilsType.yearMonthDay,
|
||||
);
|
||||
|
||||
expect(formatted, '2026-04-15');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user