11cb0ef41Sopenharmony_ciimport '../common/index.mjs';
21cb0ef41Sopenharmony_ciimport { strictEqual } from 'assert';
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci{
51cb0ef41Sopenharmony_ci  const results = await Promise.allSettled([
61cb0ef41Sopenharmony_ci    import('../fixtures/empty.js', { with: { type: 'json' } }),
71cb0ef41Sopenharmony_ci    import('../fixtures/empty.js'),
81cb0ef41Sopenharmony_ci  ]);
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci  strictEqual(results[0].status, 'rejected');
111cb0ef41Sopenharmony_ci  strictEqual(results[1].status, 'fulfilled');
121cb0ef41Sopenharmony_ci}
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci{
151cb0ef41Sopenharmony_ci  const results = await Promise.allSettled([
161cb0ef41Sopenharmony_ci    import('../fixtures/empty.js'),
171cb0ef41Sopenharmony_ci    import('../fixtures/empty.js', { with: { type: 'json' } }),
181cb0ef41Sopenharmony_ci  ]);
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci  strictEqual(results[0].status, 'fulfilled');
211cb0ef41Sopenharmony_ci  strictEqual(results[1].status, 'rejected');
221cb0ef41Sopenharmony_ci}
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ci{
251cb0ef41Sopenharmony_ci  const results = await Promise.allSettled([
261cb0ef41Sopenharmony_ci    import('../fixtures/empty.json', { with: { type: 'json' } }),
271cb0ef41Sopenharmony_ci    import('../fixtures/empty.json'),
281cb0ef41Sopenharmony_ci  ]);
291cb0ef41Sopenharmony_ci
301cb0ef41Sopenharmony_ci  strictEqual(results[0].status, 'fulfilled');
311cb0ef41Sopenharmony_ci  strictEqual(results[1].status, 'rejected');
321cb0ef41Sopenharmony_ci}
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci{
351cb0ef41Sopenharmony_ci  const results = await Promise.allSettled([
361cb0ef41Sopenharmony_ci    import('../fixtures/empty.json'),
371cb0ef41Sopenharmony_ci    import('../fixtures/empty.json', { with: { type: 'json' } }),
381cb0ef41Sopenharmony_ci  ]);
391cb0ef41Sopenharmony_ci
401cb0ef41Sopenharmony_ci  strictEqual(results[0].status, 'rejected');
411cb0ef41Sopenharmony_ci  strictEqual(results[1].status, 'fulfilled');
421cb0ef41Sopenharmony_ci}
43