Skip to content

Commit

Permalink
Merge pull request #22 from a-givertzman/hmi_core-upgrade
Browse files Browse the repository at this point in the history
pubspec | Upgraded hmi_core
  • Loading branch information
Minyewoo authored Apr 22, 2024
2 parents 7f6be80 + 2f4a265 commit 4ef3967
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/unit/table_schema/field/field_constructor_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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', () {
Expand Down
15 changes: 10 additions & 5 deletions test/unit/table_schema/field_value/field_value_str_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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');
}
});
}

0 comments on commit 4ef3967

Please sign in to comment.