Skip to content

Commit 0957c0c

Browse files
committed
Fix tests
1 parent 2e787bc commit 0957c0c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/devtools_app/lib/src/standalone_ui/ide_shared/property_editor/property_editor_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class PropertyEditorView extends StatelessWidget {
5252

5353
final (:properties, :name, :documentation, :fileUri) =
5454
editableWidgetData;
55-
if (fileUri == null || !fileUri.endsWith('.dart')) {
55+
if (fileUri != null && !fileUri.endsWith('.dart')) {
5656
return const CenteredMessage(
5757
message: 'No Dart code found at the current cursor location.',
5858
);

packages/devtools_app/test/standalone_ui/ide_shared/property_editor/property_editor_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ void main() {
9999
),
100100
).thenAnswer((realInvocation) {
101101
getEditableArgsCalled?.complete();
102+
getEditableArgsCalled = Completer<void>();
102103
return Future.value(result);
103104
});
104105
}

0 commit comments

Comments
 (0)