modified usermodel to have an events array
This commit is contained in:
parent
43cae32cf1
commit
41298ae655
5 changed files with 42 additions and 5 deletions
|
|
@ -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', () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue