From 9ce2ea1f1ca538882d1b7c3218e0cb2a3016deec Mon Sep 17 00:00:00 2001 From: Minyewoo Date: Tue, 19 Mar 2024 23:33:21 +0300 Subject: [PATCH 1/4] pubspec | Upgraded hmi_core --- pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 559d5d6..dbfb66f 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: 1.0.1 uuid: ^3.0.7 web_socket_channel: ^2.4.0 From ad01ae72dc6e7a16c848603699bc15f33efe9f26 Mon Sep 17 00:00:00 2001 From: Minyewoo Date: Fri, 22 Mar 2024 04:02:38 +0300 Subject: [PATCH 2/4] pubspec | bumped hmi_core version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index dbfb66f..c29ba73 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: hmi_core: git: url: https://github.com/a-givertzman/hmi_core.git - ref: 1.0.1 + ref: 2.0.0 uuid: ^3.0.7 web_socket_channel: ^2.4.0 From 04d2b7a1546900e031a803da031ad9e99eea813f Mon Sep 17 00:00:00 2001 From: Minyewoo Date: Mon, 22 Apr 2024 17:00:14 +0300 Subject: [PATCH 3/4] Field | fixed test --- test/unit/table_schema/field/field_constructor_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', () { From 2f4a265456a72bf10bfec0956135ceb7e7ff5722 Mon Sep 17 00:00:00 2001 From: Minyewoo Date: Mon, 22 Apr 2024 17:00:32 +0300 Subject: [PATCH 4/4] FieldValue | fixed test --- .../field_value/field_value_str_test.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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