diff --git a/packages/golden_toolkit/lib/src/configuration.dart b/packages/golden_toolkit/lib/src/configuration.dart index 201de22..388028e 100644 --- a/packages/golden_toolkit/lib/src/configuration.dart +++ b/packages/golden_toolkit/lib/src/configuration.dart @@ -141,7 +141,11 @@ class GoldenToolkitConfiguration { @override int get hashCode => - skipGoldenAssertion.hashCode ^ fileNameFactory.hashCode ^ deviceFileNameFactory.hashCode ^ primeAssets.hashCode ^ defaultDevices.hashCode; + skipGoldenAssertion.hashCode ^ + fileNameFactory.hashCode ^ + deviceFileNameFactory.hashCode ^ + primeAssets.hashCode ^ + defaultDevices.hashCode; } bool _doNotSkip() => false; diff --git a/packages/golden_toolkit/test/configuration_test.dart b/packages/golden_toolkit/test/configuration_test.dart index 662b37e..4b33941 100644 --- a/packages/golden_toolkit/test/configuration_test.dart +++ b/packages/golden_toolkit/test/configuration_test.dart @@ -131,16 +131,16 @@ void main() { }); test('defaultDevices should not be null or empty', () async { - await expectLater(() => - GoldenToolkit.runWithConfiguration( + await expectLater( + () => GoldenToolkit.runWithConfiguration( () {}, config: GoldenToolkitConfiguration(defaultDevices: null), ), throwsAssertionError, ); - await expectLater(() => - GoldenToolkit.runWithConfiguration( + await expectLater( + () => GoldenToolkit.runWithConfiguration( () {}, config: GoldenToolkitConfiguration(defaultDevices: const []), ), diff --git a/packages/golden_toolkit/test/device_test.dart b/packages/golden_toolkit/test/device_test.dart index bb4db8d..7fb1830 100644 --- a/packages/golden_toolkit/test/device_test.dart +++ b/packages/golden_toolkit/test/device_test.dart @@ -52,9 +52,17 @@ void main() { expect(dark.safeArea, equals(Device.iphone11.safeArea)); }); - test('toString()', (){ - const device = Device(name: 'foo', size: Size(100,200), devicePixelRatio: 1.5, brightness: Brightness.dark, safeArea: EdgeInsets.all(1), textScale: 1.5); - expect(device.toString(), equals('Device: foo, 100.0x200.0 @ 1.5, text: 1.5, Brightness.dark, safe: EdgeInsets.all(1.0)')); + test('toString()', () { + const device = Device( + name: 'foo', + size: Size(100, 200), + devicePixelRatio: 1.5, + brightness: Brightness.dark, + safeArea: EdgeInsets.all(1), + textScale: 1.5, + ); + expect(device.toString(), + equals('Device: foo, 100.0x200.0 @ 1.5, text: 1.5, Brightness.dark, safe: EdgeInsets.all(1.0)')); }); }); }