(customer?: Partial<Customer>)
| 34 | * @param customer - A partial (or complete) Customer object. |
| 35 | */ |
| 36 | export function givenCustomer(customer?: Partial<Customer>) { |
| 37 | const data = Object.assign( |
| 38 | { |
| 39 | firstName: 'John', |
| 40 | lastName: 'Doe', |
| 41 | }, |
| 42 | customer, |
| 43 | ); |
| 44 | return new Customer(data); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Generate a complete Account object for use with tests. |
no outgoing calls
no test coverage detected