modified usermodel to have an events array

This commit is contained in:
Mariano Uvalle 2019-04-01 00:34:36 -06:00
parent 43cae32cf1
commit 41298ae655
5 changed files with 42 additions and 5 deletions

View file

@ -29,6 +29,7 @@ main() {
final user = UserModel(
id: '123',
tasks: <String>[],
events: <String>[],
pendingHigh: 0,
pendingMedium: 0,
pendingLow: 0,
@ -81,7 +82,7 @@ main() {
when(querySnapshot.documents).thenReturn([snapshot]);
when(snapshot.documentID).thenReturn(user.id);
expect(provider.getUser(user.username), emits(user));
expect(provider.getUserObservable(user.username), emits(user));
});
test('should create task', () {