J. S. Choi 6276853eb9 Add support for the "Hack" pipeline proposal (#13191)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-08-03 23:30:16 +02:00

14 lines
223 B
JavaScript

const triple = (x) => x * 3;
async function myFunction(n) {
return n
|> Math.abs(#)
|> Promise.resolve(#)
|> await #
|> triple(#);
}
return myFunction(-7).then(result => {
expect(result).toBe(21);
});