()
| 2013 | |
| 2014 | // Returns a promise for all the time objects |
| 2015 | function makeThreeTimeObjects() { |
| 2016 | const start = new Date(); |
| 2017 | let one, two, three; |
| 2018 | return makeTimeObject(start, 1) |
| 2019 | .then(o1 => { |
| 2020 | one = o1; |
| 2021 | return makeTimeObject(start, 2); |
| 2022 | }) |
| 2023 | .then(o2 => { |
| 2024 | two = o2; |
| 2025 | return makeTimeObject(start, 3); |
| 2026 | }) |
| 2027 | .then(o3 => { |
| 2028 | three = o3; |
| 2029 | return [one, two, three]; |
| 2030 | }); |
| 2031 | } |
| 2032 | |
| 2033 | it('time equality', function (done) { |
| 2034 | makeThreeTimeObjects().then(function (list) { |
no test coverage detected