(todo?: Partial<Todo>)
| 35 | * @param todo - A partial (or complete) Todo object. |
| 36 | */ |
| 37 | export function givenTodo(todo?: Partial<Todo>) { |
| 38 | const data = Object.assign( |
| 39 | { |
| 40 | title: 'do a thing', |
| 41 | desc: 'There are some things that need doing', |
| 42 | isComplete: false, |
| 43 | }, |
| 44 | todo, |
| 45 | ); |
| 46 | return new Todo(data); |
| 47 | } |
| 48 | |
| 49 | export const aLocation = { |
| 50 | address: '1 New Orchard Road, Armonk, 10504', |
no outgoing calls
no test coverage detected