From 01bab2c13de1fd7ec5af040f4e12e4c648a44a3d Mon Sep 17 00:00:00 2001 From: Adam Sundberg Date: Wed, 1 Jun 2022 13:34:16 +0200 Subject: [PATCH 1/2] minor edits --- test/ListViewPageTest.dart | 8 +++----- test/VenuePageTest.dart | 9 ++++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/test/ListViewPageTest.dart b/test/ListViewPageTest.dart index a194763..3a71876 100644 --- a/test/ListViewPageTest.dart +++ b/test/ListViewPageTest.dart @@ -1,6 +1,3 @@ - -import 'dart:math'; - import 'package:flutter_applicationdemo/ListViewPage.dart'; import 'package:flutter_applicationdemo/Venue.dart'; import 'package:flutter_applicationdemo/globals.dart' as globals; @@ -12,8 +9,9 @@ void main() { test('Test ListViewPage can access venues', () { // ListViewPage listViewPage = const ListViewPage(); ListViewPageState listViewPage = ListViewPageState(); - globals.VENUES.add(Venue(00, 'Aira', 'Biskopsudden', '9', const LatLng(59.354823, 19.29485))); + globals.VENUES.add(Venue( + 00, 'Aira', 'Biskopsudden', '9', const LatLng(59.354823, 19.29485))); expect(globals.VENUES.first, listViewPage.allVenues.first); }); -} \ No newline at end of file +} diff --git a/test/VenuePageTest.dart b/test/VenuePageTest.dart index 855ee8e..21c64c1 100644 --- a/test/VenuePageTest.dart +++ b/test/VenuePageTest.dart @@ -1,19 +1,18 @@ +import 'package:flutter_applicationdemo/ListViewPage.dart'; import 'package:flutter_applicationdemo/Venue.dart'; import 'package:flutter_applicationdemo/WeatherData.dart'; import 'package:flutter_applicationdemo/venuePage.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:test/test.dart'; - - void main() { test('Venue Page Has Access to Venue Instance', () { - Venue venue = Venue(00, 'Aira', 'Biskopsudden', '9', const LatLng(59.354823, 19.29485)); + Venue venue = Venue( + 00, 'Aira', 'Biskopsudden', '9', const LatLng(59.354823, 19.29485)); VenuePage venuePage = VenuePage(venue); expect('Aira', venuePage.venue.venueName); expect('Biskopsudden', venuePage.venue.venueAddress); expect('9', venuePage.venue.venueStreetNo); - }); -} \ No newline at end of file +} -- 2.39.5 From cec07c0a225693badcaa729a79c98ca7a829a162 Mon Sep 17 00:00:00 2001 From: Adam Sundberg Date: Wed, 1 Jun 2022 13:38:49 +0200 Subject: [PATCH 2/2] edits after name changes --- test/list_view_page_test.dart | 4 ++-- test/venue_page_test.dart | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/list_view_page_test.dart b/test/list_view_page_test.dart index 3a71876..dc41f1c 100644 --- a/test/list_view_page_test.dart +++ b/test/list_view_page_test.dart @@ -1,5 +1,5 @@ -import 'package:flutter_applicationdemo/ListViewPage.dart'; -import 'package:flutter_applicationdemo/Venue.dart'; +import 'package:flutter_applicationdemo/list_view_page.dart'; +import 'package:flutter_applicationdemo/venue.dart'; import 'package:flutter_applicationdemo/globals.dart' as globals; import 'package:google_maps_flutter/google_maps_flutter.dart'; diff --git a/test/venue_page_test.dart b/test/venue_page_test.dart index 21c64c1..9e33de2 100644 --- a/test/venue_page_test.dart +++ b/test/venue_page_test.dart @@ -1,7 +1,7 @@ -import 'package:flutter_applicationdemo/ListViewPage.dart'; -import 'package:flutter_applicationdemo/Venue.dart'; -import 'package:flutter_applicationdemo/WeatherData.dart'; -import 'package:flutter_applicationdemo/venuePage.dart'; +import 'package:flutter_applicationdemo/list_view_page.dart'; +import 'package:flutter_applicationdemo/venue.dart'; +import 'package:flutter_applicationdemo/weather_data.dart'; +import 'package:flutter_applicationdemo/venue_page.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:test/test.dart'; -- 2.39.5