import { Todo } from '../models/index' ; export function givenTodo ( todo ? ) { const data = Object . assign ( { title : 'do a thing' , desc : 'There are some things that need doing' , isComplete : false , } , todo ) ; return new Todo ( data ) ; }