diff --git a/packages/orm/angel_orm_test/lib/src/enum_test.dart b/packages/orm/angel_orm_test/lib/src/enum_test.dart index 8d9000e8..3e5ff727 100644 --- a/packages/orm/angel_orm_test/lib/src/enum_test.dart +++ b/packages/orm/angel_orm_test/lib/src/enum_test.dart @@ -2,12 +2,10 @@ import 'package:angel3_orm_test/src/models/has_car.dart'; import 'package:test/test.dart'; void main() async { - /// See https://github.com/dukefirehawk/angel/pull/98 test('enum field with custom deserializer should be parsed consistently', () { final query = HasCarQuery(); final hasCar = query.parseRow([null, null, null, 'R', null]).value; expect(hasCar.color, equals(Color.red)); }); - } diff --git a/packages/orm/angel_orm_test/lib/src/models/has_car.dart b/packages/orm/angel_orm_test/lib/src/models/has_car.dart index 39a6222f..d5ea3bc3 100644 --- a/packages/orm/angel_orm_test/lib/src/models/has_car.dart +++ b/packages/orm/angel_orm_test/lib/src/models/has_car.dart @@ -18,7 +18,9 @@ Color? codeToColor(String? code) => code == null String? colorToCode(Color? color) => color?.code; enum Color { - red('R'), green('G'), blue('B'); + red('R'), + green('G'), + blue('B'); const Color(this.code);