Minor edits #59
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
import 'dart:math';
|
|
||||||
|
|
||||||
import 'package:flutter_applicationdemo/list_view_page.dart';
|
import 'package:flutter_applicationdemo/list_view_page.dart';
|
||||||
import 'package:flutter_applicationdemo/venue.dart';
|
import 'package:flutter_applicationdemo/venue.dart';
|
||||||
import 'package:flutter_applicationdemo/globals.dart' as globals;
|
import 'package:flutter_applicationdemo/globals.dart' as globals;
|
||||||
|
@ -12,7 +9,8 @@ void main() {
|
||||||
test('Test ListViewPage can access venues', () {
|
test('Test ListViewPage can access venues', () {
|
||||||
// ListViewPage listViewPage = const ListViewPage();
|
// ListViewPage listViewPage = const ListViewPage();
|
||||||
ListViewPageState listViewPage = ListViewPageState();
|
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);
|
expect(globals.VENUES.first, listViewPage.allVenues.first);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,19 +1,18 @@
|
||||||
|
import 'package:flutter_applicationdemo/list_view_page.dart';
|
||||||
import 'package:flutter_applicationdemo/venue.dart';
|
import 'package:flutter_applicationdemo/venue.dart';
|
||||||
import 'package:flutter_applicationdemo/weather_data.dart';
|
import 'package:flutter_applicationdemo/weather_data.dart';
|
||||||
import 'package:flutter_applicationdemo/venue_page.dart';
|
import 'package:flutter_applicationdemo/venue_page.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
test('Venue Page Has Access to Venue Instance', () {
|
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);
|
VenuePage venuePage = VenuePage(venue);
|
||||||
|
|
||||||
expect('Aira', venuePage.venue.venueName);
|
expect('Aira', venuePage.venue.venueName);
|
||||||
expect('Biskopsudden', venuePage.venue.venueAddress);
|
expect('Biskopsudden', venuePage.venue.venueAddress);
|
||||||
expect('9', venuePage.venue.venueStreetNo);
|
expect('9', venuePage.venue.venueStreetNo);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user