From 339e65d839dfdd598b6f6d092ae09a8a78172fea Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Wed, 21 Mar 2018 12:58:13 -0700 Subject: [PATCH] Remove an error that is caught at compile time in Dart 2 (#15797) --- packages/flutter/test/painting/text_style_test.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/flutter/test/painting/text_style_test.dart b/packages/flutter/test/painting/text_style_test.dart index 1e20775d1c0..044cf231012 100644 --- a/packages/flutter/test/painting/text_style_test.dart +++ b/packages/flutter/test/painting/text_style_test.dart @@ -23,7 +23,6 @@ void main() { fontWeight: FontWeight.w800, height: 123.0, ); - expect(() { s1.fontFamily = 'test'; }, throwsA(const isInstanceOf())); // ignore: ASSIGNMENT_TO_FINAL expect(s1.fontFamily, isNull); expect(s1.fontSize, 10.0); expect(s1.fontWeight, FontWeight.w800);