testTaskAssign function
Implementation
Future testTaskAssign() async {
final task = await createTask();
final createdRef = await Assign.create(taskId: task.id, uid: my!.uid);
final createdAssign = await Assign.get(createdRef.id) as Assign;
isTrue(createdAssign.taskId == task.id, 'Task id is not correct');
isTrue(createdAssign.uid == my!.uid, 'User id is not correct');
final updatedTask = await Task.get(task.id) as Task;
isTrue(
updatedTask.assignTo.contains(my!.uid),
'Expect: success on task assign',
);
}