(start, i)
| 2005 | |
| 2006 | // Returns a promise |
| 2007 | function makeTimeObject(start, i) { |
| 2008 | const time = new Date(); |
| 2009 | time.setSeconds(start.getSeconds() + i); |
| 2010 | const item = new TestObject({ name: 'item' + i, time: time }); |
| 2011 | return item.save(); |
| 2012 | } |
| 2013 | |
| 2014 | // Returns a promise for all the time objects |
| 2015 | function makeThreeTimeObjects() { |
no outgoing calls
no test coverage detected