Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubspec | Upgraded hmi_core #22

Merged
merged 4 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
}
});
}
Loading