diff --git a/pubspec.yaml b/pubspec.yaml index 559d5d6..c29ba73 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: ext_rw description: API tools on client side for Dart / Flutter application -version: 1.0.0 +version: 1.0.1 homepage: https://github.com/a-givertzman/dart_ext_rw publish_to: none @@ -14,7 +14,7 @@ dependencies: hmi_core: git: url: https://github.com/a-givertzman/hmi_core.git - ref: 1.0.0 + ref: 2.0.0 uuid: ^3.0.7 web_socket_channel: ^2.4.0 diff --git a/test/unit/table_schema/field/field_constructor_test.dart b/test/unit/table_schema/field/field_constructor_test.dart index 48778d9..ca34dbe 100644 --- a/test/unit/table_schema/field/field_constructor_test.dart +++ b/test/unit/table_schema/field/field_constructor_test.dart @@ -10,7 +10,7 @@ void main() { expect(field.key, equals(key)); expect(field.title, equals(key)); expect(field.isHidden, equals(false)); - expect(field.isEditable, equals(true)); + expect(field.isEditable, equals(false)); expect(field.relation, equals(const Relation.empty())); }); test('sets provided values', () { diff --git a/test/unit/table_schema/field_value/field_value_str_test.dart b/test/unit/table_schema/field_value/field_value_str_test.dart index 9fad099..6ceab23 100644 --- a/test/unit/table_schema/field_value/field_value_str_test.dart +++ b/test/unit/table_schema/field_value/field_value_str_test.dart @@ -93,25 +93,30 @@ void main() { 'type': FieldType.bool, 'str': 'true', }, + { + 'value': null, + 'type': FieldType.unknown, + 'str': 'null', + }, { 'value': null, 'type': FieldType.string, - 'str': null, + 'str': 'null', }, { 'value': null, 'type': FieldType.int, - 'str': null, + 'str': 'null', }, { 'value': null, 'type': FieldType.double, - 'str': null, + 'str': 'null', }, { 'value': null, 'type': FieldType.bool, - 'str': null, + 'str': 'null', }, { 'value': _TestObject(), @@ -140,7 +145,7 @@ void main() { 'str': str as String?, } in valueMaps) { final fieldValue = FieldValue(value, type: type); - expect(fieldValue.str, equals(str)); + expect(fieldValue.str, equals(str), reason: 'value: $value, type: $type, str: $str'); } }); } \ No newline at end of file