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 });
|