function test() { return func1() .then(v1 => { return func2(v1); }) .then(v2 => { return func3(v1, v2); }); }