testTaskDeleteWithoutAssign function

Future testTaskDeleteWithoutAssign()

Implementation

Future testTaskDeleteWithoutAssign() async {
  final ref = await Task.create(title: 'task - ${DateTime.now()}');
  final created = await Task.get(ref.id) as Task;

  await created.delete();
  final deleted = await Task.get(ref.id);
  isTrue(deleted == null, 'Expect: success on task delete.');
}