mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
5 lines
141 B
JavaScript
5 lines
141 B
JavaScript
const x = async do { let x = 21; x + x };
|
|
|
|
expect(x).toBeInstanceOf(Promise);
|
|
x.then((v) => expect(v).toBe(42)).catch(err => { throw err });
|