Skip to content

Commit

Permalink
Clean up cast
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Oct 4, 2023
1 parent a284dfc commit 7ca0cb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/js_builds/shared_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'dart:js_util';

import 'package:js/js.dart';
import 'package:react/react.dart' as react;
import 'package:react/react_client/component_factory.dart';
import 'package:react/react_dom.dart' as react_dom;
import 'package:react/react_client/react_interop.dart';
import 'package:test/test.dart';
Expand Down Expand Up @@ -172,7 +173,7 @@ void sharedErrorBoundaryComponentNameTests() {

test('Component components', () {
expectRenderErrorWithComponentName(
_ThrowingComponent({}) as ReactElement,
_ThrowingComponent({}),
expectedComponentName: r'DisplayName$_ThrowingComponent',
);
});
Expand Down Expand Up @@ -220,7 +221,8 @@ class _ErrorBoundaryComponent extends react.Component2 {
}
}

final _ThrowingComponent = react.registerComponent(() => _ThrowingComponentComponent());
final _ThrowingComponent =
react.registerComponent(() => _ThrowingComponentComponent()) as ReactDartComponentFactoryProxy;

class _ThrowingComponentComponent extends react.Component {
@override
Expand Down

0 comments on commit 7ca0cb8

Please sign in to comment.