Skip to content

Commit 53fcf65

Browse files
Merge pull request #420 from Workiva/test-ci
FED-3927 Fix failing test on Dart 3
2 parents 489d86f + f20ada3 commit 53fcf65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/factory/dart_function_factory_test.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ main() {
3131
expect(getJsFunctionName(FunctionFoo.reactFunction), '_FunctionFoo');
3232

3333
expect(FunctionFoo.displayName, getJsFunctionName(FunctionFoo.reactFunction));
34-
});
34+
// There was a change in Dart 3.8.0 where `getProperty(object, 'name')` returns 'tear' for top-level functions in ddc.
35+
// `getProperty` is deprecated in Dart 3 so we might move away from this functionality in the future.
36+
// For now, we will just ignore this test in ddc.
37+
}, tags: 'no-dartdevc');
3538

3639
test('is populated by the provided argument', () {
3740
expect(NamedFunctionFoo.displayName, 'Bar');

0 commit comments

Comments
 (0)