fix(curriculum): add await before Promise.all() (#42472)

This commit is contained in:
awu43
2021-06-14 11:40:47 -07:00
committed by GitHub
parent b3af21d50f
commit 24d2555633

View File

@ -66,7 +66,7 @@ async (getUserInput) => {
let a = $.post(url, { title: 'Faux Book A' }); let a = $.post(url, { title: 'Faux Book A' });
let b = $.post(url, { title: 'Faux Book B' }); let b = $.post(url, { title: 'Faux Book B' });
let c = $.post(url, { title: 'Faux Book C' }); let c = $.post(url, { title: 'Faux Book C' });
Promise.all([a, b, c]).then(async () => { await Promise.all([a, b, c]).then(async () => {
let data = await $.get(url); let data = await $.get(url);
assert.isArray(data); assert.isArray(data);
assert.isAtLeast(data.length, 3); assert.isAtLeast(data.length, 3);